@road-labs/map-sdk 0.0.28-rc.0 → 0.0.28-rc.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.
- package/README.md +2 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -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,8 +5087,9 @@ 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 =
|
|
5091
|
-
|
|
5090
|
+
const { options: t } = j(), r = e?.name || "-", n = e?.id;
|
|
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(fe, { icon: /* @__PURE__ */ s("img", { src: Mn, alt: "station icon" }), text: o ? /* @__PURE__ */ s("a", { href: o, target: "_blank", rel: "noopener noreferrer", children: r }) : r });
|
|
5092
5093
|
}, Zn = ({ color: e, size: t = 10 }) => /* @__PURE__ */ s(
|
|
5093
5094
|
"span",
|
|
5094
5095
|
{
|