@scalemule/news-publication 0.0.47 → 0.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -0
- package/dist/{chunk-GB36YM56.js → chunk-2MEYHM7M.js} +11 -1
- package/dist/chunk-4JRWZXAP.js +62 -0
- package/dist/chunk-MBBPEFDA.js +124 -0
- package/dist/chunk-TTLM7YOH.js +444 -0
- package/dist/chunk-ZXH3O537.js +251 -0
- package/dist/community-maps-view.d.cts +3 -3
- package/dist/community-maps-view.d.ts +3 -3
- package/dist/cookie-consent-banner.d.cts +2 -2
- package/dist/cookie-consent-banner.d.ts +2 -2
- package/dist/cookie-settings-view.d.cts +2 -2
- package/dist/cookie-settings-view.d.ts +2 -2
- package/dist/index.cjs +74 -3
- package/dist/index.d.cts +12 -4
- package/dist/index.d.ts +12 -4
- package/dist/index.js +49 -6
- package/dist/marketplace-forms.d.cts +3 -3
- package/dist/marketplace-forms.d.ts +3 -3
- package/dist/marketplace-view.d.cts +5 -5
- package/dist/marketplace-view.d.ts +5 -5
- package/dist/{meet-RWmfj3I3.d.cts → meet-BWpxY20X.d.ts} +5 -0
- package/dist/{meet-RWmfj3I3.d.ts → meet-CO9Unz5M.d.cts} +5 -0
- package/dist/meet-forms.d.cts +7 -6
- package/dist/meet-forms.d.ts +7 -6
- package/dist/meet-forms.js +2 -1
- package/dist/meet-view.cjs +22 -2
- package/dist/meet-view.d.cts +7 -5
- package/dist/meet-view.d.ts +7 -5
- package/dist/meet-view.js +21 -4
- package/dist/network-bar.d.cts +2 -2
- package/dist/network-bar.d.ts +2 -2
- package/dist/network-copyright.d.cts +2 -2
- package/dist/network-copyright.d.ts +2 -2
- package/dist/pets-auth-server.cjs +212 -0
- package/dist/pets-auth-server.d.cts +17 -0
- package/dist/pets-auth-server.d.ts +17 -0
- package/dist/pets-auth-server.js +155 -0
- package/dist/pets-forms.cjs +762 -0
- package/dist/pets-forms.d.cts +26 -0
- package/dist/pets-forms.d.ts +26 -0
- package/dist/pets-forms.js +712 -0
- package/dist/pets-interactions.cjs +332 -0
- package/dist/pets-interactions.d.cts +20 -0
- package/dist/pets-interactions.d.ts +20 -0
- package/dist/pets-interactions.js +319 -0
- package/dist/pets-publication.cjs +818 -0
- package/dist/pets-publication.d.cts +36 -0
- package/dist/pets-publication.d.ts +36 -0
- package/dist/pets-publication.js +177 -0
- package/dist/pets-server.cjs +289 -0
- package/dist/pets-server.d.cts +42 -0
- package/dist/pets-server.d.ts +42 -0
- package/dist/pets-server.js +2 -0
- package/dist/pets-view.cjs +541 -0
- package/dist/pets-view.d.cts +56 -0
- package/dist/pets-view.d.ts +56 -0
- package/dist/pets-view.js +4 -0
- package/dist/pets.cjs +138 -0
- package/dist/pets.d.cts +127 -0
- package/dist/pets.d.ts +127 -0
- package/dist/pets.js +1 -0
- package/dist/sponsorship-view.d.cts +2 -2
- package/dist/sponsorship-view.d.ts +2 -2
- package/dist/sponsorship-view.js +2 -62
- package/dist/story-review.d.cts +6 -6
- package/dist/story-review.d.ts +6 -6
- package/dist/theme-toggle.d.cts +2 -2
- package/dist/theme-toggle.d.ts +2 -2
- package/dist/verified-card.d.cts +3 -3
- package/dist/verified-card.d.ts +3 -3
- package/package.json +40 -3
- package/pets.css +538 -0
- package/tokens/broadsheet.css +46 -0
package/dist/index.js
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
export { NetworkCopyrightNotice } from './chunk-WAC6ATNP.js';
|
|
2
1
|
export { CURATED_COMMUNITY_CARDS, VerifiedCardComponent, VerifiedCardSection, getArticleCards, isSafeActionUrl } from './chunk-FMCHQI7K.js';
|
|
3
|
-
export { MEET_ACTIVITIES, activityLabel, canHostMeetup, isAdult, prepareMeetup, screenMessage } from './chunk-GB36YM56.js';
|
|
4
2
|
export { CookieConsentBanner } from './chunk-GOWOYMSG.js';
|
|
5
3
|
export { CookieSettingsView } from './chunk-UL2Q3N26.js';
|
|
6
4
|
export { THEME_COOKIE, THEME_EVENT, THEME_MAX_AGE_SECONDS, THEME_STORAGE_KEY, ThemeToggle, applyTheme, clearTheme, getStoredTheme, getSystemTheme, resolveEffectiveTheme, setTheme, subscribeTheme, themeInitScript } from './chunk-NQD3M7ZY.js';
|
|
7
5
|
export { LocalNetworkBar } from './chunk-2XSW7JZS.js';
|
|
6
|
+
export { NetworkCopyrightNotice } from './chunk-WAC6ATNP.js';
|
|
8
7
|
import { localPublications } from './chunk-JV76ZEIA.js';
|
|
9
8
|
export { COOKIE_CATEGORIES, COOKIE_CONSENT_BACKUP_KEY, COOKIE_CONSENT_EVENT, COOKIE_CONSENT_KEY, COOKIE_CONSENT_MAX_AGE_SECONDS, DEFAULT_CONSENT_HUB_URL, DEFAULT_PREFERENCES_ACCEPTED, DEFAULT_PREFERENCES_REJECTED, EDITORIAL_PRINCIPLES, EU_EEA_UK_COUNTRIES, NETWORK_CONSENT_STORAGE_KEY, NETWORK_PARENT, acceptAllCookies, checkUrlConsentBridge, clearCookieConsent, communityPublications, decorateNetworkUrl, findPublicationByHost, findPublicationBySlug, getCookieConsent, getNetworkPublicationUrl, hasConsented, isCategoryAllowed, isGeoConsentRequired, listedPublications, localPublications, queryNetworkConsentHub, recordConsentToCompliance, rejectOptionalCookies, setCookieConsent, setNetworkConsentHub } from './chunk-JV76ZEIA.js';
|
|
10
|
-
export { SPONSORSHIP_OFFERINGS, SPONSORSHIP_POLICY, placementAvailable, safeSponsorUrl } from './chunk-66GI2IX6.js';
|
|
11
9
|
export { communityMapEmbeds } from './chunk-IMYBSG7J.js';
|
|
12
10
|
export { formatArtworkCaption, parseDocumentBlocks, renderArticleBlocksToHtml, sanitizeInlineMarkdown } from './chunk-OISLCYER.js';
|
|
13
11
|
import { definePublication } from './chunk-57YVL6BD.js';
|
|
14
12
|
export { BROADSHEET_THEME, FEATURE_NAMES, LAYOUT_COOKIE, acceptRemoteRecord, acceptSnapshot, definePublication, featureEnabled, parseSnapshot, publicationFromSnapshot, publicationRecord, resolveLayout, snapshotFromRecord, syncPublication } from './chunk-57YVL6BD.js';
|
|
15
13
|
export { CLASSIFIED_CATEGORIES, JOB_EMPLOYMENT_TYPES, categoryLabel, classifiedPath, classifiedSearchPath, clipChars, dealDollars, dealGoPath, dealsFeedPath, employmentLabel, isClassifiedCategory, isEmploymentType, jobEmployerBody, jobOpeningBody, jobPostingBody, prepareClassified, prepareJobPost, publicJobPath, publicJobsPath } from './chunk-C7ZPLH2K.js';
|
|
14
|
+
export { MEET_ACTIVITIES, activityLabel, canHostMeetup, isAdult, prepareMeetup, screenMessage } from './chunk-2MEYHM7M.js';
|
|
15
|
+
export { SPONSORSHIP_OFFERINGS, SPONSORSHIP_POLICY, placementAvailable, safeSponsorUrl } from './chunk-66GI2IX6.js';
|
|
16
|
+
import './chunk-MBBPEFDA.js';
|
|
16
17
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
17
18
|
|
|
18
19
|
// src/editorial.ts
|
|
@@ -32,6 +33,48 @@ var EDITORIAL_SECTION_ORDER = [
|
|
|
32
33
|
"Schools",
|
|
33
34
|
"Opinion"
|
|
34
35
|
];
|
|
36
|
+
var SECTION_ALIASES = {
|
|
37
|
+
"Business": "Local businesses",
|
|
38
|
+
"Government": "Civic life",
|
|
39
|
+
"Arts & Culture": "Community",
|
|
40
|
+
"Food & drink": "Food & places",
|
|
41
|
+
"Things to do": "Events",
|
|
42
|
+
"Sports": "Community",
|
|
43
|
+
"Education": "Schools",
|
|
44
|
+
"Public Safety": "Civic life",
|
|
45
|
+
"Transit": "Civic life",
|
|
46
|
+
"Environment": "Civic life",
|
|
47
|
+
"Recreation": "Community"
|
|
48
|
+
};
|
|
49
|
+
function resolveSection(item) {
|
|
50
|
+
const explicit = item.section?.trim();
|
|
51
|
+
if (explicit && explicit !== "Local news") {
|
|
52
|
+
return SECTION_ALIASES[explicit] ?? explicit;
|
|
53
|
+
}
|
|
54
|
+
const descriptors = [
|
|
55
|
+
...(item.tags ?? []).map((t) => t.name.toLowerCase()),
|
|
56
|
+
...(item.categories ?? []).map((c) => c.name.toLowerCase())
|
|
57
|
+
];
|
|
58
|
+
for (const desc of descriptors) {
|
|
59
|
+
if (/\b(health|wellness|medical|hospital|clinic|doctor|pharmacy|veterinar|pet care|animal welfare|vaccin)\b/i.test(desc)) return "Health";
|
|
60
|
+
if (/\b(real estate|housing|home|homes|mortgage|tenant|tenants|apartment|apartments|property|bmr)\b/i.test(desc)) return "Real Estate";
|
|
61
|
+
if (/\b(civic|government|council|election|ballot|measure|transit|traffic|police|fire|firefighter|wildfire|safety|policy|supervisor)\b/i.test(desc)) return "Civic life";
|
|
62
|
+
if (/\b(business|retail|commerce|commercial|downtown|store|shop|merchants?|chamber of commerce)\b/i.test(desc)) return "Local businesses";
|
|
63
|
+
if (/\b(event|events|festival|festivals|fair|fairs|concert|concerts|music|workshop|workshops|things to do|exhibition|performance)\b/i.test(desc)) return "Events";
|
|
64
|
+
if (/\b(school|schools|education|student|students|teacher|teachers|campus|college|university)\b/i.test(desc)) return "Schools";
|
|
65
|
+
if (/\b(food|dining|restaurant|restaurants|wine|winery|brewery|bakery|cafe|coffee|cuisine|chef)\b/i.test(desc)) return "Food & places";
|
|
66
|
+
if (/\b(community|volunteer|volunteers|library|libraries|neighborhood|nonprofit|charity|youth|senior|seniors)\b/i.test(desc)) return "Community";
|
|
67
|
+
}
|
|
68
|
+
const text = `${item.title} ${item.excerpt ?? ""}`;
|
|
69
|
+
if (/\b(health|hospitals?|clinics?|medical|doctors?|pharmac(?:y|ies)|wellness|veterinar(?:y|ian)|pet care|animal welfare|vaccinat(?:ion|ions)|patients?)\b/iu.test(text)) return "Health";
|
|
70
|
+
if (/\b(real estate|homeownership|mortgage|housing|tenants?|apartments?|below-market rate|home sales?|condos?)\b/iu.test(text)) return "Real Estate";
|
|
71
|
+
if (/\b(city council|planning commission|board of supervisors|ballot|measure [a-z0-9]|election|transit|traffic|police|firefighter|wildfire|evacuation|pedestrian safety|city manager|public works)\b/iu.test(text)) return "Civic life";
|
|
72
|
+
if (/\b(storefront|retail|downtown business|chamber of commerce|opens? doors?|boutique|merchants?|shoppers?|commercial space)\b/iu.test(text)) return "Local businesses";
|
|
73
|
+
if (/\b(festival|parade|fair|concert|workshop|exhibition|showcase|celebration|weigh-off|halloween|trunk-or-treat)\b/iu.test(text)) return "Events";
|
|
74
|
+
if (/\b(schools?|students?|teachers?|campuses?|classrooms?|high school|elementary|school district)\b/iu.test(text)) return "Schools";
|
|
75
|
+
if (/\b(restaurants?|cafes?|baker(?:y|ies)|winer(?:y|ies)|brewer(?:y|ies)|dining|chefs?|menus?)\b/iu.test(text)) return "Food & places";
|
|
76
|
+
return "Community";
|
|
77
|
+
}
|
|
35
78
|
function orderedSections(sections2, order = EDITORIAL_SECTION_ORDER) {
|
|
36
79
|
return sections2.filter((section) => section.name !== "Local news").slice().sort((left, right) => {
|
|
37
80
|
const leftRank = order.indexOf(left.name);
|
|
@@ -53,8 +96,8 @@ function sectionDefinition(name) {
|
|
|
53
96
|
function editorialSections(items) {
|
|
54
97
|
const groups = /* @__PURE__ */ new Map();
|
|
55
98
|
for (const item of items) {
|
|
56
|
-
const name = item
|
|
57
|
-
groups.set(name, [...groups.get(name) ?? [], item]);
|
|
99
|
+
const name = resolveSection(item);
|
|
100
|
+
groups.set(name, [...groups.get(name) ?? [], { ...item, section: name }]);
|
|
58
101
|
}
|
|
59
102
|
return Array.from(groups, ([name, articles]) => ({ ...sectionDefinition(name), items: articles }));
|
|
60
103
|
}
|
|
@@ -794,4 +837,4 @@ function campaignReportHtml(report) {
|
|
|
794
837
|
<footer><p>${escape(report.reporting_note)}</p><p>${escape(report.editorial_independence)}</p><p>Campaign reference: ${escape(report.campaign_id)}</p></footer></body></html>`;
|
|
795
838
|
}
|
|
796
839
|
|
|
797
|
-
export { ANALYTICS_COOKIE, ANALYTICS_VERSION, ArticleProvenance, EDITORIAL_SECTION_ORDER, EVENTS, LOCAL_BRIEFING_POLICY_VERSION, NEWS_CACHE, NewsError, SESSION_IDLE_MS, UTM_FIELDS, UUID, activeNearby, articleCacheKey, articleCacheOptions, articleMeta, articleUrl, attribution, briefSummary, campaignReportHtml, composeEdition, composeLocalBriefing, defaultRevalidateTargets, displayHeadline, edgeCacheControl, editorialSections, feedCacheKey, feedCacheOptions, filterNews, inventoryCacheOptions, llmsText, matchesStoryTag, measurementConsent, nearbyUpdates, newsArticleJsonLd, normalizedText, orderedSections, publicHttps, publicUrl, publicationJsonLd, publicationListeningCandidates, publicationListeningTrack, publicationMeta, readerSources, referralCode, resolveCoupon, revalidateDecision, secretsMatch, sectionDefinition, sectionId, sectionPath, shortDeck, shortText, shouldServeLastKnown, storyDate, storyTowns, townSlug, validCalendarDate, walnutCreekTimes, withLastKnown };
|
|
840
|
+
export { ANALYTICS_COOKIE, ANALYTICS_VERSION, ArticleProvenance, EDITORIAL_SECTION_ORDER, EVENTS, LOCAL_BRIEFING_POLICY_VERSION, NEWS_CACHE, NewsError, SESSION_IDLE_MS, UTM_FIELDS, UUID, activeNearby, articleCacheKey, articleCacheOptions, articleMeta, articleUrl, attribution, briefSummary, campaignReportHtml, composeEdition, composeLocalBriefing, defaultRevalidateTargets, displayHeadline, edgeCacheControl, editorialSections, feedCacheKey, feedCacheOptions, filterNews, inventoryCacheOptions, llmsText, matchesStoryTag, measurementConsent, nearbyUpdates, newsArticleJsonLd, normalizedText, orderedSections, publicHttps, publicUrl, publicationJsonLd, publicationListeningCandidates, publicationListeningTrack, publicationMeta, readerSources, referralCode, resolveCoupon, resolveSection, revalidateDecision, secretsMatch, sectionDefinition, sectionId, sectionPath, shortDeck, shortText, shouldServeLastKnown, storyDate, storyTowns, townSlug, validCalendarDate, walnutCreekTimes, withLastKnown };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
|
|
3
3
|
declare function JobPostForm({ towns }: {
|
|
4
4
|
towns: string[];
|
|
5
|
-
}):
|
|
5
|
+
}): React.JSX.Element;
|
|
6
6
|
declare function ClassifiedPostForm({ towns }: {
|
|
7
7
|
towns: string[];
|
|
8
|
-
}):
|
|
8
|
+
}): React.JSX.Element;
|
|
9
9
|
|
|
10
10
|
export { ClassifiedPostForm, JobPostForm };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
|
|
3
3
|
declare function JobPostForm({ towns }: {
|
|
4
4
|
towns: string[];
|
|
5
|
-
}):
|
|
5
|
+
}): React.JSX.Element;
|
|
6
6
|
declare function ClassifiedPostForm({ towns }: {
|
|
7
7
|
towns: string[];
|
|
8
|
-
}):
|
|
8
|
+
}): React.JSX.Element;
|
|
9
9
|
|
|
10
10
|
export { ClassifiedPostForm, JobPostForm };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { C as ClassifiedListing, P as PublicDeal, a as PublicJob } from './marketplace-29i5w4LS.cjs';
|
|
3
3
|
|
|
4
4
|
declare function JobsBoard({ region, jobs, query }: {
|
|
5
5
|
region: string;
|
|
6
6
|
jobs: PublicJob[];
|
|
7
7
|
query: string;
|
|
8
|
-
}):
|
|
8
|
+
}): React.JSX.Element;
|
|
9
9
|
declare function JobArticle({ job }: {
|
|
10
10
|
job: PublicJob;
|
|
11
|
-
}):
|
|
11
|
+
}): React.JSX.Element;
|
|
12
12
|
declare function ClassifiedsBoard({ region, listings, category, deals, }: {
|
|
13
13
|
region: string;
|
|
14
14
|
listings: ClassifiedListing[];
|
|
15
15
|
category: string;
|
|
16
16
|
deals?: PublicDeal[];
|
|
17
|
-
}):
|
|
17
|
+
}): React.JSX.Element;
|
|
18
18
|
declare function ClassifiedArticle({ listing }: {
|
|
19
19
|
listing: ClassifiedListing;
|
|
20
|
-
}):
|
|
20
|
+
}): React.JSX.Element;
|
|
21
21
|
|
|
22
22
|
export { ClassifiedArticle, ClassifiedsBoard, JobArticle, JobsBoard };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { C as ClassifiedListing, P as PublicDeal, a as PublicJob } from './marketplace-29i5w4LS.js';
|
|
3
3
|
|
|
4
4
|
declare function JobsBoard({ region, jobs, query }: {
|
|
5
5
|
region: string;
|
|
6
6
|
jobs: PublicJob[];
|
|
7
7
|
query: string;
|
|
8
|
-
}):
|
|
8
|
+
}): React.JSX.Element;
|
|
9
9
|
declare function JobArticle({ job }: {
|
|
10
10
|
job: PublicJob;
|
|
11
|
-
}):
|
|
11
|
+
}): React.JSX.Element;
|
|
12
12
|
declare function ClassifiedsBoard({ region, listings, category, deals, }: {
|
|
13
13
|
region: string;
|
|
14
14
|
listings: ClassifiedListing[];
|
|
15
15
|
category: string;
|
|
16
16
|
deals?: PublicDeal[];
|
|
17
|
-
}):
|
|
17
|
+
}): React.JSX.Element;
|
|
18
18
|
declare function ClassifiedArticle({ listing }: {
|
|
19
19
|
listing: ClassifiedListing;
|
|
20
|
-
}):
|
|
20
|
+
}): React.JSX.Element;
|
|
21
21
|
|
|
22
22
|
export { ClassifiedArticle, ClassifiedsBoard, JobArticle, JobsBoard };
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { PawWalkDetails } from './pets.js';
|
|
2
|
+
|
|
1
3
|
/** Rules for in-person meetups and the paper's chat. */
|
|
4
|
+
|
|
2
5
|
declare const MEET_ACTIVITIES: readonly [{
|
|
3
6
|
readonly value: "coffee";
|
|
4
7
|
readonly label: "Coffee";
|
|
@@ -52,6 +55,7 @@ type MeetupInput = {
|
|
|
52
55
|
startsAt?: unknown;
|
|
53
56
|
notes?: unknown;
|
|
54
57
|
capacity?: unknown;
|
|
58
|
+
walk?: Partial<PawWalkDetails>;
|
|
55
59
|
};
|
|
56
60
|
type PreparedMeetup = {
|
|
57
61
|
activity: MeetActivity;
|
|
@@ -62,6 +66,7 @@ type PreparedMeetup = {
|
|
|
62
66
|
startsAt: string;
|
|
63
67
|
notes: string;
|
|
64
68
|
capacity: number;
|
|
69
|
+
walk?: PawWalkDetails;
|
|
65
70
|
};
|
|
66
71
|
declare function isAdult(bornOn: string, now?: Date): boolean;
|
|
67
72
|
declare function canHostMeetup(accountCreatedAt: string, now?: Date): boolean;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { PawWalkDetails } from './pets.cjs';
|
|
2
|
+
|
|
1
3
|
/** Rules for in-person meetups and the paper's chat. */
|
|
4
|
+
|
|
2
5
|
declare const MEET_ACTIVITIES: readonly [{
|
|
3
6
|
readonly value: "coffee";
|
|
4
7
|
readonly label: "Coffee";
|
|
@@ -52,6 +55,7 @@ type MeetupInput = {
|
|
|
52
55
|
startsAt?: unknown;
|
|
53
56
|
notes?: unknown;
|
|
54
57
|
capacity?: unknown;
|
|
58
|
+
walk?: Partial<PawWalkDetails>;
|
|
55
59
|
};
|
|
56
60
|
type PreparedMeetup = {
|
|
57
61
|
activity: MeetActivity;
|
|
@@ -62,6 +66,7 @@ type PreparedMeetup = {
|
|
|
62
66
|
startsAt: string;
|
|
63
67
|
notes: string;
|
|
64
68
|
capacity: number;
|
|
69
|
+
walk?: PawWalkDetails;
|
|
65
70
|
};
|
|
66
71
|
declare function isAdult(bornOn: string, now?: Date): boolean;
|
|
67
72
|
declare function canHostMeetup(accountCreatedAt: string, now?: Date): boolean;
|
package/dist/meet-forms.d.cts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { P as PublicPlace } from './meet-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { P as PublicPlace } from './meet-CO9Unz5M.cjs';
|
|
3
|
+
import './pets.cjs';
|
|
3
4
|
|
|
4
5
|
declare function MeetHostForm({ places }: {
|
|
5
6
|
places: PublicPlace[];
|
|
6
|
-
}):
|
|
7
|
-
declare function PhoneCheckForm():
|
|
8
|
-
declare function BirthdayForm():
|
|
7
|
+
}): React.JSX.Element;
|
|
8
|
+
declare function PhoneCheckForm(): React.JSX.Element;
|
|
9
|
+
declare function BirthdayForm(): React.JSX.Element;
|
|
9
10
|
declare function MeetupChat({ meetupId }: {
|
|
10
11
|
meetupId: string;
|
|
11
|
-
}):
|
|
12
|
+
}): React.JSX.Element;
|
|
12
13
|
|
|
13
14
|
export { BirthdayForm, MeetHostForm, MeetupChat, PhoneCheckForm };
|
package/dist/meet-forms.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { P as PublicPlace } from './meet-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { P as PublicPlace } from './meet-BWpxY20X.js';
|
|
3
|
+
import './pets.js';
|
|
3
4
|
|
|
4
5
|
declare function MeetHostForm({ places }: {
|
|
5
6
|
places: PublicPlace[];
|
|
6
|
-
}):
|
|
7
|
-
declare function PhoneCheckForm():
|
|
8
|
-
declare function BirthdayForm():
|
|
7
|
+
}): React.JSX.Element;
|
|
8
|
+
declare function PhoneCheckForm(): React.JSX.Element;
|
|
9
|
+
declare function BirthdayForm(): React.JSX.Element;
|
|
9
10
|
declare function MeetupChat({ meetupId }: {
|
|
10
11
|
meetupId: string;
|
|
11
|
-
}):
|
|
12
|
+
}): React.JSX.Element;
|
|
12
13
|
|
|
13
14
|
export { BirthdayForm, MeetHostForm, MeetupChat, PhoneCheckForm };
|
package/dist/meet-forms.js
CHANGED
package/dist/meet-view.cjs
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
|
|
5
|
+
// src/pets.ts
|
|
6
|
+
var PET_SAFETY = {
|
|
7
|
+
walks: "Walks are independently organized. Bay Area Paw does not supervise meetups or guarantee participants\u2019 safety. Meet in a public place, follow leash rules and respect other people and animals."};
|
|
8
|
+
|
|
5
9
|
// src/meet.ts
|
|
6
10
|
var MEET_ACTIVITIES = [
|
|
7
11
|
{ value: "coffee", label: "Coffee" },
|
|
@@ -69,8 +73,24 @@ function MeetupDetail({ meetup, joined }) {
|
|
|
69
73
|
meetup.capacity
|
|
70
74
|
] }),
|
|
71
75
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "body", children: meetup.notes }),
|
|
72
|
-
|
|
73
|
-
|
|
76
|
+
meetup.activity === "dogs" && /* @__PURE__ */ jsxRuntime.jsxs("aside", { children: [
|
|
77
|
+
meetup.walk && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
78
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { children: [
|
|
79
|
+
meetup.walk.duration_minutes,
|
|
80
|
+
" minutes",
|
|
81
|
+
meetup.walk.distance_km !== void 0 ? ` \xB7 ${meetup.walk.distance_km} km` : "",
|
|
82
|
+
" \xB7 ",
|
|
83
|
+
meetup.walk.leash === "required" ? "Leashes required" : "Follow venue leash rules"
|
|
84
|
+
] }),
|
|
85
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { children: meetup.walk.size_guidance }),
|
|
86
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { children: meetup.walk.accessibility })
|
|
87
|
+
] }),
|
|
88
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { children: PET_SAFETY.walks })
|
|
89
|
+
] }),
|
|
90
|
+
meetup.status === "cancelled" && /* @__PURE__ */ jsxRuntime.jsx("p", { role: "status", children: "This meetup has been cancelled." }),
|
|
91
|
+
meetup.status !== "cancelled" && !joined && meetup.going < meetup.capacity && /* @__PURE__ */ jsxRuntime.jsx("form", { className: "actions", method: "post", action: `/api/meet/${encodeURIComponent(meetup.id)}/join`, children: /* @__PURE__ */ jsxRuntime.jsx("button", { className: "primary", type: "submit", children: "I\u2019ll be there" }) }),
|
|
92
|
+
meetup.status !== "cancelled" && joined && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "meta", children: "You\u2019re going. Use the chat below. Keep phone numbers for when you meet." }),
|
|
93
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { children: /* @__PURE__ */ jsxRuntime.jsx("a", { href: "/corrections?resource=" + encodeURIComponent(`/meet/${meetup.id}`), children: "Report this meetup to the publication" }) })
|
|
74
94
|
] });
|
|
75
95
|
}
|
|
76
96
|
function activityChoices() {
|
package/dist/meet-view.d.cts
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { a as PreparedMeetup } from './meet-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { a as PreparedMeetup } from './meet-CO9Unz5M.cjs';
|
|
3
|
+
import './pets.cjs';
|
|
3
4
|
|
|
4
5
|
type MeetupCard = PreparedMeetup & {
|
|
5
6
|
id: string;
|
|
6
7
|
hostName: string;
|
|
7
8
|
going: number;
|
|
8
9
|
conversationId?: string | null;
|
|
10
|
+
status?: "open" | "cancelled";
|
|
9
11
|
};
|
|
10
12
|
declare function MeetBoard({ region, meetups }: {
|
|
11
13
|
region: string;
|
|
12
14
|
meetups: MeetupCard[];
|
|
13
|
-
}):
|
|
15
|
+
}): React.JSX.Element;
|
|
14
16
|
declare function MeetupDetail({ meetup, joined }: {
|
|
15
17
|
meetup: MeetupCard;
|
|
16
18
|
joined: boolean;
|
|
17
|
-
}):
|
|
19
|
+
}): React.JSX.Element;
|
|
18
20
|
declare function activityChoices(): {
|
|
19
|
-
value: "
|
|
21
|
+
value: "other" | "walk" | "coffee" | "hike" | "pickleball" | "tennis" | "soccer" | "bike" | "dogs" | "books" | "games" | "kids" | "volunteer";
|
|
20
22
|
label: string;
|
|
21
23
|
}[];
|
|
22
24
|
|
package/dist/meet-view.d.ts
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { a as PreparedMeetup } from './meet-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { a as PreparedMeetup } from './meet-BWpxY20X.js';
|
|
3
|
+
import './pets.js';
|
|
3
4
|
|
|
4
5
|
type MeetupCard = PreparedMeetup & {
|
|
5
6
|
id: string;
|
|
6
7
|
hostName: string;
|
|
7
8
|
going: number;
|
|
8
9
|
conversationId?: string | null;
|
|
10
|
+
status?: "open" | "cancelled";
|
|
9
11
|
};
|
|
10
12
|
declare function MeetBoard({ region, meetups }: {
|
|
11
13
|
region: string;
|
|
12
14
|
meetups: MeetupCard[];
|
|
13
|
-
}):
|
|
15
|
+
}): React.JSX.Element;
|
|
14
16
|
declare function MeetupDetail({ meetup, joined }: {
|
|
15
17
|
meetup: MeetupCard;
|
|
16
18
|
joined: boolean;
|
|
17
|
-
}):
|
|
19
|
+
}): React.JSX.Element;
|
|
18
20
|
declare function activityChoices(): {
|
|
19
|
-
value: "
|
|
21
|
+
value: "other" | "walk" | "coffee" | "hike" | "pickleball" | "tennis" | "soccer" | "bike" | "dogs" | "books" | "games" | "kids" | "volunteer";
|
|
20
22
|
label: string;
|
|
21
23
|
}[];
|
|
22
24
|
|
package/dist/meet-view.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { MEET_ACTIVITIES, activityLabel } from './chunk-
|
|
2
|
-
import {
|
|
1
|
+
import { MEET_ACTIVITIES, activityLabel } from './chunk-2MEYHM7M.js';
|
|
2
|
+
import { PET_SAFETY } from './chunk-MBBPEFDA.js';
|
|
3
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
3
4
|
|
|
4
5
|
function MeetBoard({ region, meetups }) {
|
|
5
6
|
return /* @__PURE__ */ jsxs("div", { className: "np-market", children: [
|
|
@@ -48,8 +49,24 @@ function MeetupDetail({ meetup, joined }) {
|
|
|
48
49
|
meetup.capacity
|
|
49
50
|
] }),
|
|
50
51
|
/* @__PURE__ */ jsx("div", { className: "body", children: meetup.notes }),
|
|
51
|
-
|
|
52
|
-
|
|
52
|
+
meetup.activity === "dogs" && /* @__PURE__ */ jsxs("aside", { children: [
|
|
53
|
+
meetup.walk && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
54
|
+
/* @__PURE__ */ jsxs("p", { children: [
|
|
55
|
+
meetup.walk.duration_minutes,
|
|
56
|
+
" minutes",
|
|
57
|
+
meetup.walk.distance_km !== void 0 ? ` \xB7 ${meetup.walk.distance_km} km` : "",
|
|
58
|
+
" \xB7 ",
|
|
59
|
+
meetup.walk.leash === "required" ? "Leashes required" : "Follow venue leash rules"
|
|
60
|
+
] }),
|
|
61
|
+
/* @__PURE__ */ jsx("p", { children: meetup.walk.size_guidance }),
|
|
62
|
+
/* @__PURE__ */ jsx("p", { children: meetup.walk.accessibility })
|
|
63
|
+
] }),
|
|
64
|
+
/* @__PURE__ */ jsx("p", { children: PET_SAFETY.walks })
|
|
65
|
+
] }),
|
|
66
|
+
meetup.status === "cancelled" && /* @__PURE__ */ jsx("p", { role: "status", children: "This meetup has been cancelled." }),
|
|
67
|
+
meetup.status !== "cancelled" && !joined && meetup.going < meetup.capacity && /* @__PURE__ */ jsx("form", { className: "actions", method: "post", action: `/api/meet/${encodeURIComponent(meetup.id)}/join`, children: /* @__PURE__ */ jsx("button", { className: "primary", type: "submit", children: "I\u2019ll be there" }) }),
|
|
68
|
+
meetup.status !== "cancelled" && joined && /* @__PURE__ */ jsx("p", { className: "meta", children: "You\u2019re going. Use the chat below. Keep phone numbers for when you meet." }),
|
|
69
|
+
/* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("a", { href: "/corrections?resource=" + encodeURIComponent(`/meet/${meetup.id}`), children: "Report this meetup to the publication" }) })
|
|
53
70
|
] });
|
|
54
71
|
}
|
|
55
72
|
function activityChoices() {
|
package/dist/network-bar.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { CSSProperties } from 'react';
|
|
3
3
|
|
|
4
4
|
interface LocalNetworkBarProps {
|
|
@@ -10,6 +10,6 @@ interface LocalNetworkBarProps {
|
|
|
10
10
|
* Global navigation bar for the Bay Area Local News network.
|
|
11
11
|
* Links across independent publication origins, transferring consent tokens automatically.
|
|
12
12
|
*/
|
|
13
|
-
declare function LocalNetworkBar({ currentSlug, className, style }: LocalNetworkBarProps):
|
|
13
|
+
declare function LocalNetworkBar({ currentSlug, className, style }: LocalNetworkBarProps): React.JSX.Element;
|
|
14
14
|
|
|
15
15
|
export { LocalNetworkBar, type LocalNetworkBarProps };
|
package/dist/network-bar.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { CSSProperties } from 'react';
|
|
3
3
|
|
|
4
4
|
interface LocalNetworkBarProps {
|
|
@@ -10,6 +10,6 @@ interface LocalNetworkBarProps {
|
|
|
10
10
|
* Global navigation bar for the Bay Area Local News network.
|
|
11
11
|
* Links across independent publication origins, transferring consent tokens automatically.
|
|
12
12
|
*/
|
|
13
|
-
declare function LocalNetworkBar({ currentSlug, className, style }: LocalNetworkBarProps):
|
|
13
|
+
declare function LocalNetworkBar({ currentSlug, className, style }: LocalNetworkBarProps): React.JSX.Element;
|
|
14
14
|
|
|
15
15
|
export { LocalNetworkBar, type LocalNetworkBarProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default, { CSSProperties } from 'react';
|
|
2
2
|
|
|
3
3
|
interface NetworkCopyrightNoticeProps {
|
|
4
4
|
className?: string;
|
|
@@ -13,6 +13,6 @@ interface NetworkCopyrightNoticeProps {
|
|
|
13
13
|
* Reusable copyright and institutional network parent attribution notice for all ScaleMule news publications.
|
|
14
14
|
* Links to the official Bay Area News Network institutional website.
|
|
15
15
|
*/
|
|
16
|
-
declare function NetworkCopyrightNotice({ className, style, publicationName, showPublicationNotice, targetBlank, prefix, showRightsReserved, }: NetworkCopyrightNoticeProps):
|
|
16
|
+
declare function NetworkCopyrightNotice({ className, style, publicationName, showPublicationNotice, targetBlank, prefix, showRightsReserved, }: NetworkCopyrightNoticeProps): React__default.JSX.Element;
|
|
17
17
|
|
|
18
18
|
export { NetworkCopyrightNotice, type NetworkCopyrightNoticeProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default, { CSSProperties } from 'react';
|
|
2
2
|
|
|
3
3
|
interface NetworkCopyrightNoticeProps {
|
|
4
4
|
className?: string;
|
|
@@ -13,6 +13,6 @@ interface NetworkCopyrightNoticeProps {
|
|
|
13
13
|
* Reusable copyright and institutional network parent attribution notice for all ScaleMule news publications.
|
|
14
14
|
* Links to the official Bay Area News Network institutional website.
|
|
15
15
|
*/
|
|
16
|
-
declare function NetworkCopyrightNotice({ className, style, publicationName, showPublicationNotice, targetBlank, prefix, showRightsReserved, }: NetworkCopyrightNoticeProps):
|
|
16
|
+
declare function NetworkCopyrightNotice({ className, style, publicationName, showPublicationNotice, targetBlank, prefix, showRightsReserved, }: NetworkCopyrightNoticeProps): React__default.JSX.Element;
|
|
17
17
|
|
|
18
18
|
export { NetworkCopyrightNotice, type NetworkCopyrightNoticeProps };
|