@road-labs/map-sdk 0.0.28-rc.3 → 0.0.28-rc.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.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -2
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5087,9 +5087,15 @@ const Ca = ({
|
|
|
5087
5087
|
i && a && /* @__PURE__ */ s("div", { className: Ee.body, style: Ia, children: n })
|
|
5088
5088
|
] });
|
|
5089
5089
|
}, ka = ({ location: e }) => {
|
|
5090
|
-
const { options: t } = j(), r = e?.name || "-", n = e?.id;
|
|
5090
|
+
const { options: t } = j(), r = e?.name || "-", n = e?.externalId || e?.id;
|
|
5091
5091
|
let o;
|
|
5092
|
-
return n && t.locationUrlTemplate && t.context === "cpo" ? o = t.locationUrlTemplate.replace(/{{\s*locationId\s*}}/g, n) : n && t.locationBaseUrl && (o = `${t.locationBaseUrl}/${n}`), /* @__PURE__ */ s(
|
|
5092
|
+
return n && t.locationUrlTemplate && t.context === "cpo" ? o = t.locationUrlTemplate.replace(/{{\s*locationId\s*}}/g, n) : n && t.locationBaseUrl && (o = `${t.locationBaseUrl}/${n}`), /* @__PURE__ */ s(
|
|
5093
|
+
fe,
|
|
5094
|
+
{
|
|
5095
|
+
icon: /* @__PURE__ */ s("img", { src: Mn, alt: "station icon" }),
|
|
5096
|
+
text: o ? /* @__PURE__ */ s("a", { href: o, target: "_blank", rel: "noopener noreferrer", children: r }) : r
|
|
5097
|
+
}
|
|
5098
|
+
);
|
|
5093
5099
|
}, Zn = ({ color: e, size: t = 10 }) => /* @__PURE__ */ s(
|
|
5094
5100
|
"span",
|
|
5095
5101
|
{
|