@herdingbits/trailhead-core 0.0.4 → 0.0.5

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 CHANGED
@@ -46,7 +46,7 @@ const shell = new Trailhead({
46
46
 
47
47
  ## Documentation
48
48
 
49
- See the [main Trailhead documentation](https://github.com/herdingbits/trailhead) for more information.
49
+ See the [main Trailhead documentation](https://github.com/quicken/trailhead) for more information.
50
50
 
51
51
  ## License
52
52
 
@@ -1 +1 @@
1
- {"version":3,"file":"shell.d.ts","sourceRoot":"","sources":["../src/shell.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAK/D,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,mBAAmB,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,SAAS;IACpB,OAAO,CAAC,UAAU,CAAiB;IACnC,OAAO,CAAC,oBAAoB,CAAqC;IACjE,SAAgB,QAAQ,EAAE,MAAM,CAAC;IACjC,SAAgB,OAAO,EAAE,mBAAmB,CAAC;gBAEjC,MAAM,EAAE,WAAW;IAM/B;;OAEG;YACW,IAAI;IAwBlB;;OAEG;YACW,WAAW;IAUzB;;OAEG;IACH,OAAO,CAAC,SAAS;IAmFjB;;OAEG;YACW,cAAc;IAU5B;;OAEG;IACH,OAAO,CAAC,gBAAgB;IA6BxB;;OAEG;IACH,OAAO,CAAC,YAAY;IAMpB;;OAEG;IACH,OAAO,CAAC,QAAQ;IAIhB;;OAEG;IACH,OAAO,CAAC,WAAW;IAenB;;OAEG;IACH,OAAO,CAAC,eAAe;IAavB;;OAEG;YACW,UAAU;CAsCzB"}
1
+ {"version":3,"file":"shell.d.ts","sourceRoot":"","sources":["../src/shell.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAI/D,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,mBAAmB,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,SAAS;IACpB,OAAO,CAAC,UAAU,CAAiB;IACnC,OAAO,CAAC,oBAAoB,CAAqC;IACjE,SAAgB,QAAQ,EAAE,MAAM,CAAC;IACjC,SAAgB,OAAO,EAAE,mBAAmB,CAAC;gBAEjC,MAAM,EAAE,WAAW;IAM/B;;OAEG;YACW,IAAI;IAwBlB;;OAEG;YACW,WAAW;IAUzB;;OAEG;IACH,OAAO,CAAC,SAAS;IAmFjB;;OAEG;YACW,cAAc;IAU5B;;OAEG;IACH,OAAO,CAAC,gBAAgB;IA6BxB;;OAEG;IACH,OAAO,CAAC,YAAY;IAMpB;;OAEG;IACH,OAAO,CAAC,QAAQ;IAIhB;;OAEG;IACH,OAAO,CAAC,WAAW;IAenB;;OAEG;IACH,OAAO,CAAC,eAAe;IAavB;;OAEG;YACW,UAAU;CAsCzB"}
package/dist/shell.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import * as http from "./lib/http.js";
2
2
  import * as requestManager from "./lib/requestManager.js";
3
- import { t } from "./lib/i18n.js";
4
3
  export class Trailhead {
5
4
  constructor(config) {
6
5
  this.navigation = [];
@@ -204,7 +203,7 @@ export class Trailhead {
204
203
  const root = document.getElementById("shell-content");
205
204
  if (!root)
206
205
  return;
207
- root.innerHTML = `<div class="shell-loading">${t("Loading...")}</div>`;
206
+ root.innerHTML = `<div class="shell-loading">Loading...</div>`;
208
207
  try {
209
208
  const pluginUrl = `${this.basePath}${appPath}/app.js`;
210
209
  const pluginCss = `${this.basePath}${appPath}/${appName}.css`;
@@ -224,13 +223,13 @@ export class Trailhead {
224
223
  }
225
224
  };
226
225
  script.onerror = () => {
227
- root.innerHTML = `<div class="shell-error">${t("Failed to load application")}: ${appName}</div>`;
226
+ root.innerHTML = `<div class="shell-error">Failed to load application: ${appName}</div>`;
228
227
  };
229
228
  document.body.appendChild(script);
230
229
  }
231
230
  catch (error) {
232
231
  console.error("Failed to load plugin:", error);
233
- root.innerHTML = `<div class="shell-error">${t("Failed to load application")}</div>`;
232
+ root.innerHTML = `<div class="shell-error">Failed to load application</div>`;
234
233
  }
235
234
  }
236
235
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@herdingbits/trailhead-core",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Simple application shell that orchestrates multiple SPAs. No webpack magic, just the browser's native module system.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "repository": {
42
42
  "type": "git",
43
- "url": "https://github.com/herdingbits/trailhead.git",
43
+ "url": "https://github.com/quicken/trailhead.git",
44
44
  "directory": "packages/core"
45
45
  }
46
46
  }
@@ -1,7 +0,0 @@
1
- /**
2
- * Translation helper function
3
- * In source code, this returns the key as-is (English)
4
- * At build time, the i18n plugin replaces t("key") with the translated string
5
- */
6
- export declare const t: (key: string) => string;
7
- //# sourceMappingURL=i18n.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/lib/i18n.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,CAAC,GAAI,KAAK,MAAM,KAAG,MAAa,CAAC"}
package/dist/lib/i18n.js DELETED
@@ -1,6 +0,0 @@
1
- /**
2
- * Translation helper function
3
- * In source code, this returns the key as-is (English)
4
- * At build time, the i18n plugin replaces t("key") with the translated string
5
- */
6
- export const t = (key) => key;