@ttt-productions/q-core 0.1.22 → 0.1.24

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,2 +1,5 @@
1
1
  export declare const FUNCTIONS_REGION = "us-east1";
2
+ /** The longest a callable runs unless its own options name a longer timeout: the Functions default,
3
+ * and the last point the client re-reads a deadline's unknown outcome. */
4
+ export declare const FUNCTIONS_REQUEST_TIMEOUT_SECONDS = 120;
2
5
  //# sourceMappingURL=deployment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deployment.d.ts","sourceRoot":"","sources":["../../src/constants/deployment.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,aAAa,CAAC"}
1
+ {"version":3,"file":"deployment.d.ts","sourceRoot":"","sources":["../../src/constants/deployment.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,aAAa,CAAC;AAE3C;2EAC2E;AAC3E,eAAO,MAAM,iCAAiC,MAAM,CAAC"}
@@ -1,2 +1,5 @@
1
1
  export const FUNCTIONS_REGION = 'us-east1';
2
+ /** The longest a callable runs unless its own options name a longer timeout: the Functions default,
3
+ * and the last point the client re-reads a deadline's unknown outcome. */
4
+ export const FUNCTIONS_REQUEST_TIMEOUT_SECONDS = 120;
2
5
  //# sourceMappingURL=deployment.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"deployment.js","sourceRoot":"","sources":["../../src/constants/deployment.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAU,CAAC","sourcesContent":["export const FUNCTIONS_REGION = 'us-east1';\n"]}
1
+ {"version":3,"file":"deployment.js","sourceRoot":"","sources":["../../src/constants/deployment.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAU,CAAC;AAE3C;2EAC2E;AAC3E,MAAM,CAAC,MAAM,iCAAiC,GAAG,GAAG,CAAC","sourcesContent":["export const FUNCTIONS_REGION = 'us-east1';\n\n/** The longest a callable runs unless its own options name a longer timeout: the Functions default,\n * and the last point the client re-reads a deadline's unknown outcome. */\nexport const FUNCTIONS_REQUEST_TIMEOUT_SECONDS = 120;\n"]}
@@ -47,8 +47,10 @@ export declare const STAT_QUEUE_STORAGE_KEY_PREFIX = "q-sports-stat-queue";
47
47
  */
48
48
  export declare function statQueueStorageKey(uid: string, gameId: string): string;
49
49
  /**
50
- * localStorage key, and the first-party cookie's name, holding this browser's analytics consent:
51
- * `'granted'` or `'denied'`; absent until the visitor chooses.
50
+ * localStorage key holding this browser's analytics consent: `'granted'` or `'denied'`; absent until
51
+ * the visitor chooses.
52
52
  */
53
53
  export declare const COOKIE_CONSENT_STORAGE_KEY = "q-sports-cookie-consent";
54
+ /** Same-tab event dispatched when COOKIE_CONSENT_STORAGE_KEY changes. */
55
+ export declare const COOKIE_CONSENT_CHANGE_EVENT = "q-sports-cookie-consent-change";
54
56
  //# sourceMappingURL=storage-keys.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"storage-keys.d.ts","sourceRoot":"","sources":["../../src/constants/storage-keys.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,UAAU,CAAC;AAEzC,wFAAwF;AACxF,eAAO,MAAM,0BAA0B,4BAA4B,CAAC;AAEpE,yEAAyE;AACzE,eAAO,MAAM,2BAA2B,mCAAmC,CAAC;AAE5E;;;GAGG;AACH,eAAO,MAAM,qCAAqC,uCAAuC,CAAC;AAE1F;;;GAGG;AACH,eAAO,MAAM,cAAc,yBAAyB,CAAC;AAErD;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,sCAAsC,CAAC;AAE3E,uGAAuG;AACvG,eAAO,MAAM,mCAAmC,qCAAqC,CAAC;AAEtF,kFAAkF;AAClF,eAAO,MAAM,oC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EAAE,QAAQ,GAAG,MAAM,CAEhG;AAED,6EAA6E;AAC7E,eAAO,MAAM,6BAA6B,qCAAqC,CAAC;AAEhF,iGAAiG;AACjG,eAAO,MAAM,6BAA6B,wBAAwB,CAAC;AAEnE;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAEvE;AAED;;;GAGG;AACH,eAAO,MAAM,0BAA0B,4BAA4B,CAAC;AAEpE,yEAAyE;AACzE,eAAO,MAAM,2BAA2B,mCAAmC,CAAC"}
@@ -52,8 +52,10 @@ export function statQueueStorageKey(uid, gameId) {
52
52
  return `${STAT_QUEUE_STORAGE_KEY_PREFIX}:${uid}:${gameId}`;
53
53
  }
54
54
  /**
55
- * localStorage key, and the first-party cookie's name, holding this browser's analytics consent:
56
- * `'granted'` or `'denied'`; absent until the visitor chooses.
55
+ * localStorage key holding this browser's analytics consent: `'granted'` or `'denied'`; absent until
56
+ * the visitor chooses.
57
57
  */
58
58
  export const COOKIE_CONSENT_STORAGE_KEY = 'q-sports-cookie-consent';
59
+ /** Same-tab event dispatched when COOKIE_CONSENT_STORAGE_KEY changes. */
60
+ export const COOKIE_CONSENT_CHANGE_EVENT = 'q-sports-cookie-consent-change';
59
61
  //# sourceMappingURL=storage-keys.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"storage-keys.js","sourceRoot":"","sources":["../../src/constants/storage-keys.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,mGAAmG;AACnG,mGAAmG;AAKnG;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,OAAO,CAAC;AAEzC,wFAAwF;AACxF,MAAM,CAAC,MAAM,0BAA0B,GAAG,yBAAyB,CAAC;AAEpE,yEAAyE;AACzE,MAAM,CAAC,MAAM,2BAA2B,GAAG,gCAAgC,CAAC;AAE5E;;;GAGG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAAG,oCAAoC,CAAC;AAE1F;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,sBAAsB,CAAC;AAErD;;;;GAIG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,mCAAmC,CAAC;AAE3E,uGAAuG;AACvG,MAAM,CAAC,MAAM,mCAAmC,GAAG,kCAAkC,CAAC;AAEtF,kFAAkF;AAClF,MAAM,CAAC,MAAM,oCAAoC,GAAG,yCAAyC,CAAC;AAE9F,yGAAyG;AACzG,MAAM,CAAC,MAAM,mCAAmC,GAAG,2BAA2B,CAAC;AAE/E;;;GAGG;AACH,MAAM,UAAU,wBAAwB,CAAC,SAA2B,EAAE,QAAkB;IACtF,OAAO,GAAG,mCAAmC,IAAI,SAAS,IAAI,QAAQ,EAAE,CAAC;AAC3E,CAAC;AAED,6EAA6E;AAC7E,MAAM,CAAC,MAAM,6BAA6B,GAAG,kCAAkC,CAAC;AAEhF,iGAAiG;AACjG,MAAM,CAAC,MAAM,6BAA6B,GAAG,qBAAqB,CAAC;AAEnE;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CAAC,GAAW,EAAE,MAAc;IAC7D,OAAO,GAAG,6BAA6B,IAAI,GAAG,IAAI,MAAM,EAAE,CAAC;AAC7D,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,yBAAyB,CAAC","sourcesContent":["// Browser-storage keys, each declared once with the same-tab event its writer dispatches: a\n// localStorage write fires the native `storage` event in every other tab but never in the tab that\n// wrote it. Every value is persisted on viewers' devices, so changing one forgets what they saved.\n\nimport type { ColumnCatalogKey } from '../sports/column-catalog.js';\nimport type { SportKey } from '../types/sports.js';\n\n/**\n * localStorage key holding the device's theme. It is `next-themes`' default key, the one viewers'\n * saved themes are stored under.\n */\nexport const THEME_STORAGE_KEY = 'theme';\n\n/** localStorage key: `'true'` when the viewer has turned motion down on this device. */\nexport const REDUCED_MOTION_STORAGE_KEY = 'q-sports-reduced-motion';\n\n/** Same-tab event dispatched when REDUCED_MOTION_STORAGE_KEY changes. */\nexport const REDUCED_MOTION_CHANGE_EVENT = 'q-sports-reduced-motion-change';\n\n/**\n * localStorage key holding the differences between this device's settings and the account's that\n * the viewer chose to keep, so the compare prompt does not ask about them again while they hold.\n */\nexport const VIEWER_SETTINGS_DISMISSAL_STORAGE_KEY = 'q-sports-viewer-settings-dismissed';\n\n/**\n * localStorage key holding the `_appConfig/app` version this device last loaded. Written only once\n * a load has confirmed it, so a release that never landed is retried next session.\n */\nexport const LS_VERSION_KEY = 'q-sports-app-version';\n\n/**\n * sessionStorage key naming the version the version gate last reloaded for. It is what tells the\n * load after that reload apart from a mismatch still to act on, so a stuck release cannot hold a\n * tab in a reload loop; a new tab starts without it and tries again.\n */\nexport const SS_RELOAD_ATTEMPTED_KEY = 'q-sports-version-reload-attempted';\n\n/** localStorage key: `'true'` while the admin sidebar is collapsed to its icon rail on this device. */\nexport const ADMIN_SIDEBAR_COLLAPSED_STORAGE_KEY = 'q-sports-admin-sidebar-collapsed';\n\n/** Same-tab event dispatched when ADMIN_SIDEBAR_COLLAPSED_STORAGE_KEY changes. */\nexport const ADMIN_SIDEBAR_COLLAPSED_CHANGE_EVENT = 'q-sports-admin-sidebar-collapsed-change';\n\n/** The prefix every stats table View-state key starts with; `statsTableViewStorageKey` adds the rest. */\nexport const STATS_TABLE_VIEW_STORAGE_KEY_PREFIX = 'q-sports-stats-table-view';\n\n/**\n * localStorage key holding one stats table's View state on this device — its preset or Custom layout,\n * its sort, and its switches — for one table type of one sport: `{prefix}:{tableType}:{sportKey}`.\n */\nexport function statsTableViewStorageKey(tableType: ColumnCatalogKey, sportKey: SportKey): string {\n return `${STATS_TABLE_VIEW_STORAGE_KEY_PREFIX}:${tableType}:${sportKey}`;\n}\n\n/** Same-tab event dispatched when any stats table View-state key changes. */\nexport const STATS_TABLE_VIEW_CHANGE_EVENT = 'q-sports-stats-table-view-change';\n\n/** The prefix every scorer's stat-queue key starts with; `statQueueStorageKey` adds the rest. */\nexport const STAT_QUEUE_STORAGE_KEY_PREFIX = 'q-sports-stat-queue';\n\n/**\n * localStorage key holding one scorer's unsent and refused stat events for one game on this device —\n * `{prefix}:{uid}:{gameId}` — so a reload loses nothing, and another account signed in on the same\n * browser never sends or sees them.\n */\nexport function statQueueStorageKey(uid: string, gameId: string): string {\n return `${STAT_QUEUE_STORAGE_KEY_PREFIX}:${uid}:${gameId}`;\n}\n\n/**\n * localStorage key, and the first-party cookie's name, holding this browser's analytics consent:\n * `'granted'` or `'denied'`; absent until the visitor chooses.\n */\nexport const COOKIE_CONSENT_STORAGE_KEY = 'q-sports-cookie-consent';\n"]}
1
+ {"version":3,"file":"storage-keys.js","sourceRoot":"","sources":["../../src/constants/storage-keys.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,mGAAmG;AACnG,mGAAmG;AAKnG;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,OAAO,CAAC;AAEzC,wFAAwF;AACxF,MAAM,CAAC,MAAM,0BAA0B,GAAG,yBAAyB,CAAC;AAEpE,yEAAyE;AACzE,MAAM,CAAC,MAAM,2BAA2B,GAAG,gCAAgC,CAAC;AAE5E;;;GAGG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAAG,oCAAoC,CAAC;AAE1F;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,sBAAsB,CAAC;AAErD;;;;GAIG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,mCAAmC,CAAC;AAE3E,uGAAuG;AACvG,MAAM,CAAC,MAAM,mCAAmC,GAAG,kCAAkC,CAAC;AAEtF,kFAAkF;AAClF,MAAM,CAAC,MAAM,oCAAoC,GAAG,yCAAyC,CAAC;AAE9F,yGAAyG;AACzG,MAAM,CAAC,MAAM,mCAAmC,GAAG,2BAA2B,CAAC;AAE/E;;;GAGG;AACH,MAAM,UAAU,wBAAwB,CAAC,SAA2B,EAAE,QAAkB;IACtF,OAAO,GAAG,mCAAmC,IAAI,SAAS,IAAI,QAAQ,EAAE,CAAC;AAC3E,CAAC;AAED,6EAA6E;AAC7E,MAAM,CAAC,MAAM,6BAA6B,GAAG,kCAAkC,CAAC;AAEhF,iGAAiG;AACjG,MAAM,CAAC,MAAM,6BAA6B,GAAG,qBAAqB,CAAC;AAEnE;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CAAC,GAAW,EAAE,MAAc;IAC7D,OAAO,GAAG,6BAA6B,IAAI,GAAG,IAAI,MAAM,EAAE,CAAC;AAC7D,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,yBAAyB,CAAC;AAEpE,yEAAyE;AACzE,MAAM,CAAC,MAAM,2BAA2B,GAAG,gCAAgC,CAAC","sourcesContent":["// Browser-storage keys, each declared once with the same-tab event its writer dispatches: a\n// localStorage write fires the native `storage` event in every other tab but never in the tab that\n// wrote it. Every value is persisted on viewers' devices, so changing one forgets what they saved.\n\nimport type { ColumnCatalogKey } from '../sports/column-catalog.js';\nimport type { SportKey } from '../types/sports.js';\n\n/**\n * localStorage key holding the device's theme. It is `next-themes`' default key, the one viewers'\n * saved themes are stored under.\n */\nexport const THEME_STORAGE_KEY = 'theme';\n\n/** localStorage key: `'true'` when the viewer has turned motion down on this device. */\nexport const REDUCED_MOTION_STORAGE_KEY = 'q-sports-reduced-motion';\n\n/** Same-tab event dispatched when REDUCED_MOTION_STORAGE_KEY changes. */\nexport const REDUCED_MOTION_CHANGE_EVENT = 'q-sports-reduced-motion-change';\n\n/**\n * localStorage key holding the differences between this device's settings and the account's that\n * the viewer chose to keep, so the compare prompt does not ask about them again while they hold.\n */\nexport const VIEWER_SETTINGS_DISMISSAL_STORAGE_KEY = 'q-sports-viewer-settings-dismissed';\n\n/**\n * localStorage key holding the `_appConfig/app` version this device last loaded. Written only once\n * a load has confirmed it, so a release that never landed is retried next session.\n */\nexport const LS_VERSION_KEY = 'q-sports-app-version';\n\n/**\n * sessionStorage key naming the version the version gate last reloaded for. It is what tells the\n * load after that reload apart from a mismatch still to act on, so a stuck release cannot hold a\n * tab in a reload loop; a new tab starts without it and tries again.\n */\nexport const SS_RELOAD_ATTEMPTED_KEY = 'q-sports-version-reload-attempted';\n\n/** localStorage key: `'true'` while the admin sidebar is collapsed to its icon rail on this device. */\nexport const ADMIN_SIDEBAR_COLLAPSED_STORAGE_KEY = 'q-sports-admin-sidebar-collapsed';\n\n/** Same-tab event dispatched when ADMIN_SIDEBAR_COLLAPSED_STORAGE_KEY changes. */\nexport const ADMIN_SIDEBAR_COLLAPSED_CHANGE_EVENT = 'q-sports-admin-sidebar-collapsed-change';\n\n/** The prefix every stats table View-state key starts with; `statsTableViewStorageKey` adds the rest. */\nexport const STATS_TABLE_VIEW_STORAGE_KEY_PREFIX = 'q-sports-stats-table-view';\n\n/**\n * localStorage key holding one stats table's View state on this device — its preset or Custom layout,\n * its sort, and its switches — for one table type of one sport: `{prefix}:{tableType}:{sportKey}`.\n */\nexport function statsTableViewStorageKey(tableType: ColumnCatalogKey, sportKey: SportKey): string {\n return `${STATS_TABLE_VIEW_STORAGE_KEY_PREFIX}:${tableType}:${sportKey}`;\n}\n\n/** Same-tab event dispatched when any stats table View-state key changes. */\nexport const STATS_TABLE_VIEW_CHANGE_EVENT = 'q-sports-stats-table-view-change';\n\n/** The prefix every scorer's stat-queue key starts with; `statQueueStorageKey` adds the rest. */\nexport const STAT_QUEUE_STORAGE_KEY_PREFIX = 'q-sports-stat-queue';\n\n/**\n * localStorage key holding one scorer's unsent and refused stat events for one game on this device —\n * `{prefix}:{uid}:{gameId}` — so a reload loses nothing, and another account signed in on the same\n * browser never sends or sees them.\n */\nexport function statQueueStorageKey(uid: string, gameId: string): string {\n return `${STAT_QUEUE_STORAGE_KEY_PREFIX}:${uid}:${gameId}`;\n}\n\n/**\n * localStorage key holding this browser's analytics consent: `'granted'` or `'denied'`; absent until\n * the visitor chooses.\n */\nexport const COOKIE_CONSENT_STORAGE_KEY = 'q-sports-cookie-consent';\n\n/** Same-tab event dispatched when COOKIE_CONSENT_STORAGE_KEY changes. */\nexport const COOKIE_CONSENT_CHANGE_EVENT = 'q-sports-cookie-consent-change';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttt-productions/q-core",
3
- "version": "0.1.22",
3
+ "version": "0.1.24",
4
4
  "description": "Core types, Firestore path constants, zod schemas, and shared constants for Q-Sports",
5
5
  "repository": {
6
6
  "type": "git",