arky-sdk 0.7.84 → 0.7.85
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.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/utils.cjs +2 -0
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.js +2 -0
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -172,7 +172,7 @@ declare function fetchSvgContent(mediaObject: any): Promise<string | null>;
|
|
|
172
172
|
declare function getSvgContentForAstro(mediaObject: any): Promise<string>;
|
|
173
173
|
declare function injectSvgIntoElement(mediaObject: any, targetElement: HTMLElement, className?: string): Promise<void>;
|
|
174
174
|
|
|
175
|
-
declare const SDK_VERSION = "0.7.
|
|
175
|
+
declare const SDK_VERSION = "0.7.85";
|
|
176
176
|
declare const SUPPORTED_FRAMEWORKS: readonly ["astro", "react", "vue", "svelte", "vanilla"];
|
|
177
177
|
interface ApiConfig {
|
|
178
178
|
httpClient: any;
|
package/dist/index.d.ts
CHANGED
|
@@ -172,7 +172,7 @@ declare function fetchSvgContent(mediaObject: any): Promise<string | null>;
|
|
|
172
172
|
declare function getSvgContentForAstro(mediaObject: any): Promise<string>;
|
|
173
173
|
declare function injectSvgIntoElement(mediaObject: any, targetElement: HTMLElement, className?: string): Promise<void>;
|
|
174
174
|
|
|
175
|
-
declare const SDK_VERSION = "0.7.
|
|
175
|
+
declare const SDK_VERSION = "0.7.85";
|
|
176
176
|
declare const SUPPORTED_FRAMEWORKS: readonly ["astro", "react", "vue", "svelte", "vanilla"];
|
|
177
177
|
interface ApiConfig {
|
|
178
178
|
httpClient: any;
|
package/dist/index.js
CHANGED
|
@@ -2314,6 +2314,7 @@ var createAnalyticsApi = (apiConfig) => {
|
|
|
2314
2314
|
|
|
2315
2315
|
// src/utils/price.ts
|
|
2316
2316
|
function formatCurrency(amount, currencyCode, locale = "en") {
|
|
2317
|
+
if (!currencyCode) return "";
|
|
2317
2318
|
return new Intl.NumberFormat(locale, {
|
|
2318
2319
|
style: "currency",
|
|
2319
2320
|
currency: currencyCode.toUpperCase()
|
|
@@ -2355,6 +2356,7 @@ function getCurrencyName(currency) {
|
|
|
2355
2356
|
}
|
|
2356
2357
|
}
|
|
2357
2358
|
function formatMinor(amountMinor, currency) {
|
|
2359
|
+
if (!currency) return "";
|
|
2358
2360
|
return formatCurrency(convertToMajor(amountMinor, currency), currency);
|
|
2359
2361
|
}
|
|
2360
2362
|
function formatPayment(payment) {
|
|
@@ -2611,7 +2613,7 @@ function getFirstAvailableFCId(variant, quantity = 1) {
|
|
|
2611
2613
|
}
|
|
2612
2614
|
|
|
2613
2615
|
// src/index.ts
|
|
2614
|
-
var SDK_VERSION = "0.7.
|
|
2616
|
+
var SDK_VERSION = "0.7.85";
|
|
2615
2617
|
var SUPPORTED_FRAMEWORKS = [
|
|
2616
2618
|
"astro",
|
|
2617
2619
|
"react",
|