@hoddy-ui/next 2.0.21 → 2.0.22
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.
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -206,24 +206,24 @@ function colors(theme) {
|
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
// ../src/config/KeyManager.ts
|
|
209
|
-
var
|
|
209
|
+
var config = {
|
|
210
210
|
GOOGLE_MAP_API_KEY: ""
|
|
211
211
|
};
|
|
212
212
|
function setApiKey(key) {
|
|
213
|
-
|
|
213
|
+
config = key;
|
|
214
214
|
}
|
|
215
215
|
function getApiKey() {
|
|
216
|
-
return
|
|
216
|
+
return config;
|
|
217
217
|
}
|
|
218
218
|
|
|
219
219
|
// ../src/config/index.ts
|
|
220
|
-
function initialize(
|
|
220
|
+
function initialize(config2) {
|
|
221
221
|
try {
|
|
222
222
|
setApiKey({
|
|
223
|
-
GOOGLE_MAP_API_KEY:
|
|
223
|
+
GOOGLE_MAP_API_KEY: config2.googleMapApiKey
|
|
224
224
|
});
|
|
225
|
-
if (
|
|
226
|
-
setExtraColors(
|
|
225
|
+
if (config2.colors)
|
|
226
|
+
setExtraColors(config2.colors);
|
|
227
227
|
} catch (error) {
|
|
228
228
|
console.error("Error reading the config file:", error);
|
|
229
229
|
}
|