@financial-times/custom-code-component 0.0.1 → 0.0.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.
|
@@ -15,7 +15,7 @@ class h extends HTMLElement {
|
|
|
15
15
|
throw new Error(
|
|
16
16
|
"path attribute not specified in <custom-code-component>"
|
|
17
17
|
);
|
|
18
|
-
const [c, a, i] = o.split("/").reverse(), p = !i || a === "ccc-sdk" ? `http://
|
|
18
|
+
const [c, a, i] = o.split("/").reverse(), p = !i || a === "ccc-sdk" ? `http://localhost:5173/src/${c}/index.jsx` : (
|
|
19
19
|
// @TODO create component service -- this URL may change!!!
|
|
20
20
|
`https://ig.ft.com/component/${i}/${a}/${c}${s ? `@${s}` : "@latest"}`
|
|
21
21
|
);
|
package/package.json
CHANGED
|
@@ -31,7 +31,7 @@ class FTCustomCodeComponent extends HTMLElement {
|
|
|
31
31
|
|
|
32
32
|
const source =
|
|
33
33
|
!componentOrg || componentRepo === "ccc-sdk"
|
|
34
|
-
? `http://
|
|
34
|
+
? `http://localhost:5173/src/${componentName}/index.jsx`
|
|
35
35
|
: // @TODO create component service -- this URL may change!!!
|
|
36
36
|
`https://ig.ft.com/component/${componentOrg}/${componentRepo}/${componentName}${
|
|
37
37
|
componentVersionRange ? `@${componentVersionRange}` : "@latest"
|