@gooddata/sdk-ui-kit 11.67.0-alpha.3 → 11.67.0-alpha.4

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 +1 @@
1
- {"version":3,"file":"timezones.d.ts","sourceRoot":"","sources":["../../src/Timezone/timezones.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB;AAkJD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,aAAa,CAAC,GAAG,MAAM,CAE1F;AAED;;;;GAIG;AACH,wBAAgB,YAAY,IAAI,aAAa,EAAE,CAE9C;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,GAAG,aAAa,GAAG,SAAS,CAEjF;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,IAAI,aAAa,CAkB/C;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAG1D;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAWtF;AAmBD;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,aAAa,CAAC,CAUzF;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,EAAE,EAAE,MAAM,UAWpD"}
1
+ {"version":3,"file":"timezones.d.ts","sourceRoot":"","sources":["../../src/Timezone/timezones.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB;AA0JD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,aAAa,CAAC,GAAG,MAAM,CAE1F;AAED;;;;GAIG;AACH,wBAAgB,YAAY,IAAI,aAAa,EAAE,CAE9C;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,GAAG,aAAa,GAAG,SAAS,CAEjF;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,IAAI,aAAa,CAkB/C;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAG1D;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAWtF;AAmBD;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,aAAa,CAAC,CAUzF;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,EAAE,EAAE,MAAM,UAWpD"}
@@ -28,7 +28,7 @@ const timezonesRaw = [
28
28
  ["America/St_Johns", "Newfoundland", "GMT-03:30", -210, -150],
29
29
  ["America/Sao_Paulo", "Brasilia", "GMT-03:00", -120, -180],
30
30
  ["America/Argentina/Buenos_Aires", "Buenos Aires", "GMT-03:00", -180, -180],
31
- ["America/Godthab", "Greenland", "GMT-03:00", -180, -120],
31
+ ["America/Nuuk", "Greenland", "GMT-02:00", -120, -60],
32
32
  ["Atlantic/South_Georgia", "Mid-Atlantic", "GMT-02:00", -120, -120],
33
33
  ["Atlantic/Azores", "Azores", "GMT-01:00", -60, 0],
34
34
  ["Atlantic/Cape_Verde", "Cape Verde Is.", "GMT-01:00", -60, -60],
@@ -64,7 +64,7 @@ const timezonesRaw = [
64
64
  ["Europe/Helsinki", "Helsinki", "GMT+02:00", 120, 180],
65
65
  ["Europe/Istanbul", "Istanbul", "GMT+02:00", 120, 180],
66
66
  ["Asia/Jerusalem", "Jerusalem", "GMT+02:00", 120, 180],
67
- ["Europe/Kiev", "Kyiv", "GMT+02:00", 120, 180],
67
+ ["Europe/Kyiv", "Kyiv", "GMT+02:00", 120, 180],
68
68
  ["Europe/Minsk", "Minsk", "GMT+02:00", 120, 180],
69
69
  ["Africa/Johannesburg", "Pretoria", "GMT+02:00", 120, 120],
70
70
  ["Europe/Riga", "Riga", "GMT+02:00", 120, 180],
@@ -91,7 +91,7 @@ const timezonesRaw = [
91
91
  ["Asia/Almaty", "Almaty", "GMT+06:00", 360, 360],
92
92
  ["Asia/Dhaka", "Dhaka", "GMT+06:00", 360, 360],
93
93
  ["Asia/Novosibirsk", "Novosibirsk", "GMT+06:00", 360, 420],
94
- ["Asia/Rangoon", "Rangoon", "GMT+06:30", 390, 390],
94
+ ["Asia/Yangon", "Rangoon", "GMT+06:30", 390, 390],
95
95
  ["Asia/Bangkok", "Bangkok", "GMT+07:00", 420, 420],
96
96
  ["Asia/Jakarta", "Jakarta", "GMT+07:00", 420, 420],
97
97
  ["Asia/Krasnoyarsk", "Krasnoyarsk", "GMT+07:00", 420, 480],
@@ -134,6 +134,13 @@ const timezones = timezonesRaw.map(([id, name, offsetLabel, januaryOffset, juneO
134
134
  juneOffset,
135
135
  }));
136
136
  const TIMEZONE_DEFAULT = timezones.find((tz) => tz.id === "Etc/UTC");
137
+ // V8 (Chrome, Node) reports the runtime timezone by its legacy CLDR name, e.g. "Europe/Kiev"
138
+ // even when the system is set to "Europe/Kyiv"; map those to the canonical IDs used above
139
+ const LEGACY_TIMEZONE_ALIASES = new Map([
140
+ ["America/Godthab", "America/Nuuk"],
141
+ ["Europe/Kiev", "Europe/Kyiv"],
142
+ ["Asia/Rangoon", "Asia/Yangon"],
143
+ ]);
137
144
  /**
138
145
  * Returns the full display label of a timezone, combining the offset and the name,
139
146
  * e.g. "GMT+01:00 Prague". Use only where the merged label is actually displayed;
@@ -172,7 +179,7 @@ export function getUserTimezone() {
172
179
  // resolve to the viewer's actual zone; fall back to offset matching for runtime ids
173
180
  // that are not part of the curated list
174
181
  const runtimeTimezoneId = Intl.DateTimeFormat().resolvedOptions().timeZone;
175
- const exactMatch = getTimezoneById(runtimeTimezoneId);
182
+ const exactMatch = getTimezoneById(LEGACY_TIMEZONE_ALIASES.get(runtimeTimezoneId) ?? runtimeTimezoneId);
176
183
  if (exactMatch) {
177
184
  return exactMatch;
178
185
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-ui-kit",
3
- "version": "11.67.0-alpha.3",
3
+ "version": "11.67.0-alpha.4",
4
4
  "description": "GoodData SDK - UI Building Components",
5
5
  "license": "MIT",
6
6
  "author": "GoodData Corporation",
@@ -79,14 +79,14 @@
79
79
  "unified": "^11.0.5",
80
80
  "uuid": "11.1.1",
81
81
  "yaml": "2.9.1",
82
- "@gooddata/sdk-model": "11.67.0-alpha.3",
83
- "@gooddata/sdk-ui-theme-provider": "11.67.0-alpha.3",
84
- "@gooddata/sdk-backend-spi": "11.67.0-alpha.3",
85
- "@gooddata/util": "11.67.0-alpha.3",
86
- "@gooddata/sdk-ui": "11.67.0-alpha.3"
82
+ "@gooddata/sdk-backend-spi": "11.67.0-alpha.4",
83
+ "@gooddata/sdk-model": "11.67.0-alpha.4",
84
+ "@gooddata/sdk-ui": "11.67.0-alpha.4",
85
+ "@gooddata/sdk-ui-theme-provider": "11.67.0-alpha.4",
86
+ "@gooddata/util": "11.67.0-alpha.4"
87
87
  },
88
88
  "devDependencies": {
89
- "@microsoft/api-documenter": "7.30.16",
89
+ "@microsoft/api-documenter": "7.30.20",
90
90
  "@microsoft/api-extractor": "7.59.2",
91
91
  "@testing-library/dom": "10.4.2",
92
92
  "@testing-library/jest-dom": "7.0.1",
@@ -105,14 +105,14 @@
105
105
  "@typescript-eslint/eslint-plugin": "8.58.0",
106
106
  "@typescript-eslint/parser": "8.58.0",
107
107
  "dependency-cruiser": "17.3.10",
108
- "eslint": "^9.39.2",
108
+ "eslint": "^10.14.0",
109
109
  "eslint-plugin-headers": "1.3.3",
110
110
  "eslint-plugin-import-esm": "3.0.1",
111
111
  "eslint-plugin-jsdoc": "65.4.2",
112
112
  "eslint-plugin-no-barrel-files": "1.2.2",
113
113
  "eslint-plugin-no-only-tests": "3.3.0",
114
- "eslint-plugin-react": "7.37.5",
115
114
  "eslint-plugin-sonarjs": "4.2.2",
115
+ "eslint-plugin-tsdoc": "0.5.4",
116
116
  "happy-dom": "21.0.4",
117
117
  "kefir": "3.8.8",
118
118
  "npm-run-all": "4.1.5",
@@ -128,11 +128,11 @@
128
128
  "svgo": "2.8.4",
129
129
  "typescript": "7.0.2",
130
130
  "vitest": "5.0.4",
131
- "@gooddata/eslint-config": "11.67.0-alpha.3",
132
- "@gooddata/oxlint-config": "11.67.0-alpha.3",
133
- "@gooddata/reference-workspace": "11.67.0-alpha.3",
134
- "@gooddata/stylelint-config": "11.67.0-alpha.3",
135
- "@gooddata/sdk-backend-mockingbird": "11.67.0-alpha.3"
131
+ "@gooddata/eslint-config": "11.67.0-alpha.4",
132
+ "@gooddata/oxlint-config": "11.67.0-alpha.4",
133
+ "@gooddata/reference-workspace": "11.67.0-alpha.4",
134
+ "@gooddata/sdk-backend-mockingbird": "11.67.0-alpha.4",
135
+ "@gooddata/stylelint-config": "11.67.0-alpha.4"
136
136
  },
137
137
  "peerDependencies": {
138
138
  "react": "^18.0.0 || ^19.0.0",