@react-text-game/core 0.4.0 → 0.4.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/i18n/utils.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,kBAAkB,IAAI,OAAO,CAC/C,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CACzC,CASA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,kBAAkB,GAAI,YAAW,MAAmB,mDAGhE,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/i18n/utils.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,kBAAkB,IAAI,OAAO,CAC/C,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CACzC,CAeA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,kBAAkB,GAAI,YAAW,MAAmB,mDAGhE,CAAC"}
@@ -22,6 +22,12 @@ import i18next from "i18next";
22
22
  */
23
23
  export async function loadUITranslations() {
24
24
  try {
25
+ // UI package is a peer dependency and may not be installed.
26
+ // This dynamic import will fail gracefully at runtime if UI package is not available.
27
+ // Using @ts-ignore instead of @ts-expect-error because the error may or may not exist
28
+ // depending on whether the UI package is built/installed.
29
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
30
+ // @ts-ignore
25
31
  const { uiTranslations } = await import("@react-text-game/ui/i18n");
26
32
  return uiTranslations;
27
33
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/i18n/utils.ts"],"names":[],"mapp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AC,SAAS,CAAC,OAAO,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;AAC1D,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@react-text-game/core",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "A powerful React-based text game engine with reactive state management, passage-based navigation, and persistent save system for building interactive narrative experiences",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "repository": "github:laruss/react-text-game",
9
- "homepage": "https://laruss.github.io/react-text-game/",
9
+ "homepage": "https://reacttextgame.dev/",
10
10
  "private": false,
11
11
  "type": "module",
12
12
  "scripts": {