genesys-spark 4.108.1 → 4.108.3

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.
Files changed (2) hide show
  1. package/dist/index.js +12 -12
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -121,13 +121,13 @@ function getClosestElement(baseElement, selector) {
121
121
  }
122
122
 
123
123
  function dateTimeFormat(localeOrOptions, options) {
124
- let locale = void 0;
124
+ let locale = undefined;
125
125
  if (typeof localeOrOptions === "string") {
126
126
  locale = localeOrOptions;
127
127
  } else {
128
128
  options = localeOrOptions;
129
129
  }
130
- if (locale != void 0) {
130
+ if (locale != undefined) {
131
131
  return new Intl.DateTimeFormat(locale, options);
132
132
  } else {
133
133
  const userLocale = determineDisplayLocale();
@@ -135,13 +135,13 @@ function dateTimeFormat(localeOrOptions, options) {
135
135
  }
136
136
  }
137
137
  function relativeTimeFormat(localeOrOptions, options) {
138
- let locale = void 0;
138
+ let locale = undefined;
139
139
  if (typeof localeOrOptions === "string") {
140
140
  locale = localeOrOptions;
141
141
  } else {
142
142
  options = localeOrOptions;
143
143
  }
144
- if (locale != void 0) {
144
+ if (locale != undefined) {
145
145
  return new Intl.RelativeTimeFormat(locale, options);
146
146
  } else {
147
147
  const userLocale = determineDisplayLocale();
@@ -150,7 +150,7 @@ function relativeTimeFormat(localeOrOptions, options) {
150
150
  }
151
151
  function determineDisplayLocale(element = document.body) {
152
152
  var _a;
153
- const domLocale = (_a = getClosestElement(element, "*[lang]")) == null ? void 0 : _a.lang;
153
+ const domLocale = (_a = getClosestElement(element, "*[lang]")) == null ? undefined : _a.lang;
154
154
  if (!domLocale || browserHasRegionData(domLocale)) {
155
155
  return navigator.language;
156
156
  } else {
@@ -159,15 +159,15 @@ function determineDisplayLocale(element = document.body) {
159
159
  }
160
160
  function browserHasRegionData(localeString) {
161
161
  var _a;
162
- return browserLocaleOverride(localeString) || localeString.length == 2 && ((_a = navigator.language) == null ? void 0 : _a.startsWith(`${localeString}-`));
162
+ return browserLocaleOverride(localeString) || localeString.length == 2 && ((_a = navigator.language) == null ? undefined : _a.startsWith(`${localeString}-`));
163
163
  }
164
164
  function browserLocaleOverride(localeString) {
165
165
  var _a, _b;
166
166
  switch (localeString.toLowerCase()) {
167
167
  case "zh-cn":
168
- return Boolean((_a = navigator.language) == null ? void 0 : _a.toLowerCase().startsWith("zh-sg"));
168
+ return Boolean((_a = navigator.language) == null ? undefined : _a.toLowerCase().startsWith("zh-sg"));
169
169
  case "zh-tw":
170
- return Boolean((_b = navigator.language) == null ? void 0 : _b.toLowerCase().startsWith("zh-hk"));
170
+ return Boolean((_b = navigator.language) == null ? undefined : _b.toLowerCase().startsWith("zh-hk"));
171
171
  default:
172
172
  return false;
173
173
  }
@@ -207,8 +207,8 @@ var intl = /*#__PURE__*/Object.freeze({
207
207
  relativeTimeFormat: relativeTimeFormat
208
208
  });
209
209
 
210
- const COMPONENT_ASSET_PREFIX = "/spark-components/build-assets/4.108.1-497/genesys-webcomponents/";
211
- const CHART_COMPONENT_ASSET_PREFIX = "/spark-components/build-assets/4.108.1-497/chart/genesys-chart-webcomponents/";
210
+ const COMPONENT_ASSET_PREFIX = "/spark-components/build-assets/4.108.3-501/genesys-webcomponents/";
211
+ const CHART_COMPONENT_ASSET_PREFIX = "/spark-components/build-assets/4.108.3-501/chart/genesys-chart-webcomponents/";
212
212
  function loadSparkFonts(opts) {
213
213
  const fontOrigin = getFontOrigin();
214
214
  const flareFonts = {
@@ -218,12 +218,12 @@ function loadSparkFonts(opts) {
218
218
  const legacyFonts = {
219
219
  Roboto: `${fontOrigin}/webfonts/roboto.css`
220
220
  };
221
- const FONTS = (opts == null ? void 0 : opts.theme) === "legacy" ? legacyFonts : flareFonts;
221
+ const FONTS = (opts == null ? undefined : opts.theme) === "legacy" ? legacyFonts : flareFonts;
222
222
  return checkAndLoadFonts(FONTS);
223
223
  }
224
224
  function registerSparkComponents(opts) {
225
225
  const SCRIPT_PATH = "genesys-webcomponents.esm.js";
226
- const STYLE_PATH = (opts == null ? void 0 : opts.theme) === "legacy" ? `genesys-webcomponents-${opts.theme}.css` : "genesys-webcomponents.css";
226
+ const STYLE_PATH = (opts == null ? undefined : opts.theme) === "legacy" ? `genesys-webcomponents-${opts.theme}.css` : "genesys-webcomponents.css";
227
227
  const assetsOrigin = getComponentAssetsOrigin();
228
228
  const SCRIPT_SRC = `${assetsOrigin}${COMPONENT_ASSET_PREFIX}${SCRIPT_PATH}`;
229
229
  const STYLE_HREF = `${assetsOrigin}${COMPONENT_ASSET_PREFIX}${STYLE_PATH}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "genesys-spark",
3
- "version": "4.108.1",
3
+ "version": "4.108.3",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "",
@@ -33,22 +33,22 @@
33
33
  "@rollup/rollup-linux-x64-gnu": "^4.24.3"
34
34
  },
35
35
  "devDependencies": {
36
- "@rollup/plugin-replace": "^6.0.1",
36
+ "@rollup/plugin-replace": "^6.0.2",
37
37
  "@tsconfig/strictest": "^2.0.5",
38
- "eslint": "^9.16.0",
38
+ "eslint": "^9.17.0",
39
39
  "eslint-config-genesys-spark-components": "file:../../shared-configs/eslint-config-genesys-spark-components",
40
40
  "glob": "^11.0.0",
41
- "globals": "^15.13.0",
41
+ "globals": "^15.14.0",
42
42
  "jest": "^29.7.0",
43
43
  "jest-environment-jsdom": "^29.7.0",
44
44
  "npm-run-all": "^4.1.5",
45
45
  "prettier-package-json": "^2.8.0",
46
- "rollup": "^4.28.1",
46
+ "rollup": "^4.30.1",
47
47
  "rollup-plugin-dts": "^6.1.1",
48
48
  "rollup-plugin-esbuild": "^6.1.1",
49
- "sass": "^1.82.0",
49
+ "sass": "^1.83.1",
50
50
  "smob": "^1.5.0",
51
- "stylelint": "^16.11.0",
51
+ "stylelint": "^16.12.0",
52
52
  "stylelint-config-genesys-spark-components": "file:../../shared-configs/stylelint-config-genesys-spark-components",
53
53
  "stylelint-config-html": "^1.1.0",
54
54
  "stylelint-config-recess-order": "^5.1.1",