arky-sdk 0.5.64 → 0.5.66
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 +1 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -4
- package/dist/index.js.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +2 -4
- package/dist/types.d.ts +2 -4
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -597,11 +597,8 @@ var createPromoCodeApi = (apiConfig) => {
|
|
|
597
597
|
};
|
|
598
598
|
|
|
599
599
|
// src/utils/blocks.ts
|
|
600
|
-
function getBlockLabel(block
|
|
600
|
+
function getBlockLabel(block) {
|
|
601
601
|
if (!block) return "";
|
|
602
|
-
const label = block.properties?.label;
|
|
603
|
-
if (typeof label === "string") return label;
|
|
604
|
-
if (label && typeof label === "object") return label[locale] ?? label["en"] ?? "";
|
|
605
602
|
return block.key?.replace(/_/g, " ").replace(/\b\w/g, (l) => l.toUpperCase()) ?? "";
|
|
606
603
|
}
|
|
607
604
|
function formatBlockValue(block) {
|