@justair/justair-library 7.3.0-alpha.80c577a → 7.3.0-alpha.a5425fa
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,2 @@
|
|
|
1
|
-
export const DATA_DOWNLOAD_TYPES: string[];
|
|
1
|
+
export const DATA_DOWNLOAD_TYPES: readonly string[];
|
|
2
2
|
//# sourceMappingURL=dataDownloads.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataDownloads.d.ts","sourceRoot":"","sources":["../../src/constants/dataDownloads.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dataDownloads.d.ts","sourceRoot":"","sources":["../../src/constants/dataDownloads.js"],"names":[],"mappings":"AAkBA,oDAAoE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timezones.d.ts","sourceRoot":"","sources":["../../src/constants/timezones.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"timezones.d.ts","sourceRoot":"","sources":["../../src/constants/timezones.js"],"names":[],"mappings":"AAWA,kDAAmD"}
|
package/package.json
CHANGED
|
@@ -13,4 +13,7 @@
|
|
|
13
13
|
// as a third type — add it here and register its discriminator in
|
|
14
14
|
// models/dataDownloads.js, so no consumer has to hardcode the string.
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
// Frozen because every importer in a process gets this same instance — one
|
|
17
|
+
// consumer calling .sort() or .push() would silently reorder the picker for
|
|
18
|
+
// all of them. Matches DATA_DOWNLOAD_ERRORS in dataDownloadValidation.js.
|
|
19
|
+
export const DATA_DOWNLOAD_TYPES = Object.freeze(["AQI", "Sample"]);
|
|
@@ -3,4 +3,10 @@
|
|
|
3
3
|
// Originally lived in utils/quietHours.js (JA-3054); moved here once a
|
|
4
4
|
// second, unrelated domain (dataDownloads.js, JA-3080) needed it too.
|
|
5
5
|
|
|
6
|
+
// Deliberately no DOWNLOAD_TIMEZONES / TIMEZONE_OPTIONS list here. The
|
|
7
|
+
// download modal's "Set Timezone" dropdown offers display labels ("Eastern
|
|
8
|
+
// Standard Time (EST)") over IANA values, and labels are a view concern:
|
|
9
|
+
// this library has no i18n and no view layer, so a label map would drift from
|
|
10
|
+
// design the first time the copy changed. The validator accepts any zone Intl
|
|
11
|
+
// accepts (utils/timezone.js), so the consumer owns which subset it offers.
|
|
6
12
|
export const DEFAULT_TIMEZONE = "America/New_York";
|