@scalemule/news-publication 0.0.89 → 0.0.90

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.
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { setupNetworkConsentDelegation, COOKIE_CONSENT_EVENT, listedPublications, decorateNetworkUrl } from './chunk-CKTTYAZY.js';
2
+ import { setupNetworkConsentDelegation, COOKIE_CONSENT_EVENT, listedPublications, decorateNetworkUrl } from './chunk-NNEY6VBX.js';
3
3
  import { useState, useId, useRef, useEffect } from 'react';
4
4
  import { jsx, jsxs } from 'react/jsx-runtime';
5
5
 
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { hasConsented, rejectOptionalCookies, DEFAULT_CONSENT_HUB_URL, consentModel, isGpcActive, COOKIE_CONSENT_EVENT, acceptAllCookies, recordConsentToCompliance } from './chunk-CKTTYAZY.js';
2
+ import { hasConsented, rejectOptionalCookies, DEFAULT_CONSENT_HUB_URL, consentModel, isGpcActive, COOKIE_CONSENT_EVENT, acceptAllCookies, recordConsentToCompliance } from './chunk-NNEY6VBX.js';
3
3
  import { useState, useEffect } from 'react';
4
4
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
5
5
 
@@ -1,4 +1,4 @@
1
- import { NETWORK_PARENT } from './chunk-CKTTYAZY.js';
1
+ import { NETWORK_PARENT } from './chunk-NNEY6VBX.js';
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
3
 
4
4
  function NetworkCopyrightNotice({
@@ -368,10 +368,9 @@ function getNetworkPublicationUrl(slug) {
368
368
  if (!pub) return null;
369
369
  return decorateNetworkUrl(pub.url + "/");
370
370
  }
371
- var readerHandoffReady = /* @__PURE__ */ new Set(["sanramontimes", "trivalleyweekly"]);
372
371
  function getNetworkReaderHandoffUrl(slug) {
373
372
  const publication = findPublicationBySlug(slug);
374
- return publication && readerHandoffReady.has(slug) ? `${publication.url}/api/news/network-handoff` : null;
373
+ return publication ? `${publication.url}/api/news/network-handoff` : null;
375
374
  }
376
375
  var NETWORK_HOSTNAMES = new Set(
377
376
  localPublications.map((p) => {
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { effectivePreferences, getCookieConsent, COOKIE_CATEGORIES, setCookieConsent, recordConsentToCompliance, DEFAULT_PREFERENCES_ACCEPTED, DEFAULT_PREFERENCES_REJECTED } from './chunk-CKTTYAZY.js';
2
+ import { effectivePreferences, getCookieConsent, COOKIE_CATEGORIES, setCookieConsent, recordConsentToCompliance, DEFAULT_PREFERENCES_ACCEPTED, DEFAULT_PREFERENCES_REJECTED } from './chunk-NNEY6VBX.js';
3
3
  import { useState, useEffect } from 'react';
4
4
  import { jsxs, jsx } from 'react/jsx-runtime';
5
5
 
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- export { CookieConsentBanner } from './chunk-EPAFIBBS.js';
3
- import './chunk-CKTTYAZY.js';
2
+ export { CookieConsentBanner } from './chunk-D27NMCRK.js';
3
+ import './chunk-NNEY6VBX.js';
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- export { CookieSettingsView } from './chunk-R6WTBTXO.js';
3
- import './chunk-CKTTYAZY.js';
2
+ export { CookieSettingsView } from './chunk-PBRDIXQI.js';
3
+ import './chunk-NNEY6VBX.js';
package/dist/index.cjs CHANGED
@@ -1477,10 +1477,9 @@ function getNetworkPublicationUrl(slug) {
1477
1477
  if (!pub) return null;
1478
1478
  return compliance.decorateNetworkUrl(pub.url + "/");
1479
1479
  }
1480
- var readerHandoffReady = /* @__PURE__ */ new Set(["sanramontimes", "trivalleyweekly"]);
1481
1480
  function getNetworkReaderHandoffUrl(slug) {
1482
1481
  const publication = findPublicationBySlug(slug);
1483
- return publication && readerHandoffReady.has(slug) ? `${publication.url}/api/news/network-handoff` : null;
1482
+ return publication ? `${publication.url}/api/news/network-handoff` : null;
1484
1483
  }
1485
1484
  var NETWORK_HOSTNAMES = new Set(
1486
1485
  localPublications.map((p) => {
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
- export { LocalNetworkBar } from './chunk-F6HV2HRP.js';
2
- export { NetworkCopyrightNotice } from './chunk-RSKB5NNE.js';
1
+ export { LocalNetworkBar } from './chunk-2E42LCN3.js';
2
+ export { NetworkCopyrightNotice } from './chunk-FJ672GWO.js';
3
3
  export { CURATED_COMMUNITY_CARDS, VerifiedCardComponent, VerifiedCardSection, getArticleCards, isSafeActionUrl } from './chunk-KYUVXEJY.js';
4
4
  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';
5
5
  export { MEET_ACTIVITIES, activityLabel, canHostMeetup, isAdult, prepareMeetup, screenMessage } from './chunk-AMLVCZDP.js';
6
- export { CookieConsentBanner } from './chunk-EPAFIBBS.js';
7
- export { CookieSettingsView } from './chunk-R6WTBTXO.js';
8
- import { localPublications } from './chunk-CKTTYAZY.js';
9
- 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, consentModel, decorateNetworkUrl, effectivePreferences, findPublicationByHost, findPublicationBySlug, getCookieConsent, getNetworkPublicationUrl, getNetworkReaderHandoffUrl, hasConsented, impliedPreferences, isCategoryAllowed, isGeoConsentRequired, listedPublications, localPublications, queryNetworkConsentHub, recordConsentToCompliance, rejectOptionalCookies, setCookieConsent, setNetworkConsentHub, topicalPublications } from './chunk-CKTTYAZY.js';
6
+ export { CookieConsentBanner } from './chunk-D27NMCRK.js';
7
+ export { CookieSettingsView } from './chunk-PBRDIXQI.js';
8
+ import { localPublications } from './chunk-NNEY6VBX.js';
9
+ 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, consentModel, decorateNetworkUrl, effectivePreferences, findPublicationByHost, findPublicationBySlug, getCookieConsent, getNetworkPublicationUrl, getNetworkReaderHandoffUrl, hasConsented, impliedPreferences, isCategoryAllowed, isGeoConsentRequired, listedPublications, localPublications, queryNetworkConsentHub, recordConsentToCompliance, rejectOptionalCookies, setCookieConsent, setNetworkConsentHub, topicalPublications } from './chunk-NNEY6VBX.js';
10
10
  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';
11
11
  export { communityMapEmbeds } from './chunk-IMYBSG7J.js';
12
12
  export { articleFormatLabel, articleHeroRatio, articlePresentation, formatArtworkCaption, parseDocumentBlocks, renderArticleBlocksToHtml, sanitizeInlineMarkdown } from './chunk-DN3TBZLK.js';
@@ -1,2 +1,2 @@
1
- export { LocalNetworkBar } from './chunk-F6HV2HRP.js';
2
- import './chunk-CKTTYAZY.js';
1
+ export { LocalNetworkBar } from './chunk-2E42LCN3.js';
2
+ import './chunk-NNEY6VBX.js';
@@ -1,2 +1,2 @@
1
- export { NetworkCopyrightNotice } from './chunk-RSKB5NNE.js';
2
- import './chunk-CKTTYAZY.js';
1
+ export { NetworkCopyrightNotice } from './chunk-FJ672GWO.js';
2
+ import './chunk-NNEY6VBX.js';
package/dist/network.cjs CHANGED
@@ -245,10 +245,9 @@ function getNetworkPublicationUrl(slug) {
245
245
  if (!pub) return null;
246
246
  return compliance.decorateNetworkUrl(pub.url + "/");
247
247
  }
248
- var readerHandoffReady = /* @__PURE__ */ new Set(["sanramontimes", "trivalleyweekly"]);
249
248
  function getNetworkReaderHandoffUrl(slug) {
250
249
  const publication = findPublicationBySlug(slug);
251
- return publication && readerHandoffReady.has(slug) ? `${publication.url}/api/news/network-handoff` : null;
250
+ return publication ? `${publication.url}/api/news/network-handoff` : null;
252
251
  }
253
252
  var NETWORK_HOSTNAMES = new Set(
254
253
  localPublications.map((p) => {
@@ -58,7 +58,11 @@ declare function findPublicationBySlug(slug: string): PublicationNetworkItem | u
58
58
  declare function findPublicationByHost(host: string): PublicationNetworkItem | undefined;
59
59
  /** Get decorated URL for cross-domain navigation within the network with consent transfer. */
60
60
  declare function getNetworkPublicationUrl(slug: string): string | null;
61
- /** The fixed destination route; no identity or caller-selected return URL is carried. */
61
+ /**
62
+ * The fixed destination route for a publication in this reviewed network list.
63
+ * Sites only use it when their handoff switch is enabled after every destination
64
+ * has deployed the route. No identity or caller-selected return URL is carried.
65
+ */
62
66
  declare function getNetworkReaderHandoffUrl(slug: string): string | null;
63
67
  /** Check whether a given hostname belongs to any publication in the ScaleMule news network. */
64
68
  declare function isNetworkHostname(hostname: string): boolean;
package/dist/network.d.ts CHANGED
@@ -58,7 +58,11 @@ declare function findPublicationBySlug(slug: string): PublicationNetworkItem | u
58
58
  declare function findPublicationByHost(host: string): PublicationNetworkItem | undefined;
59
59
  /** Get decorated URL for cross-domain navigation within the network with consent transfer. */
60
60
  declare function getNetworkPublicationUrl(slug: string): string | null;
61
- /** The fixed destination route; no identity or caller-selected return URL is carried. */
61
+ /**
62
+ * The fixed destination route for a publication in this reviewed network list.
63
+ * Sites only use it when their handoff switch is enabled after every destination
64
+ * has deployed the route. No identity or caller-selected return URL is carried.
65
+ */
62
66
  declare function getNetworkReaderHandoffUrl(slug: string): string | null;
63
67
  /** Check whether a given hostname belongs to any publication in the ScaleMule news network. */
64
68
  declare function isNetworkHostname(hostname: string): boolean;
package/dist/network.js CHANGED
@@ -1 +1 @@
1
- export { EDITORIAL_PRINCIPLES, NETWORK_PARENT, communityPublications, findPublicationByHost, findPublicationBySlug, getNetworkPublicationUrl, getNetworkReaderHandoffUrl, isNetworkHostname, listedPublications, localPublications, topicalPublications } from './chunk-CKTTYAZY.js';
1
+ export { EDITORIAL_PRINCIPLES, NETWORK_PARENT, communityPublications, findPublicationByHost, findPublicationBySlug, getNetworkPublicationUrl, getNetworkReaderHandoffUrl, isNetworkHostname, listedPublications, localPublications, topicalPublications } from './chunk-NNEY6VBX.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scalemule/news-publication",
3
- "version": "0.0.89",
3
+ "version": "0.0.90",
4
4
  "description": "Shared server framework for ScaleMule local news publications. Walnut Creek Times is the broadsheet default; each paper supplies its own identity and feature flags.",
5
5
  "type": "module",
6
6
  "bin": {