@gamepark/react-game 7.1.0 → 7.2.0

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.
@@ -5,7 +5,7 @@ export type CounterProps = {
5
5
  value: number | string;
6
6
  imageCss?: Interpolation<Theme>;
7
7
  extraCss?: Interpolation<Theme>;
8
- onClick?: () => void;
8
+ onClick?: (e: any) => void;
9
9
  };
10
10
  export type CountersProps = {
11
11
  counters: CounterProps[];
@@ -16,7 +16,7 @@ export const MaterialRulesDialog = (props) => {
16
16
  _jsx(RulesHelpDialogContent, { helpDisplay: game.helpDisplay })] }));
17
17
  };
18
18
  const inlineImg = css `
19
- p img {
19
+ p img, li img, h2 img, h3 img, h4 img {
20
20
  height: 1em;
21
21
  position: relative;
22
22
  top: 0.1em;
@@ -36,6 +36,7 @@ export const linkButtonCss = css `
36
36
  ${buttonResetCss};
37
37
 
38
38
  border: none;
39
+ color: inherit;
39
40
  text-decoration: underline;
40
41
  padding: 0;
41
42
 
@@ -1 +1 @@
1
- {"version":3,"file":"buttonCss.js","sourceRoot":"","sources":["../../src/css/buttonCss.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAEpC,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAA;;;;;;;CAOhC,CAAA;AAED,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,KAAa,EAAE,KAAa,EAAE,MAAc,EAAE,EAAE,CAAC,GAAG,CAAA;IAC1E,cAAc;;;;yBAIO,KAAK;WACnB,KAAK;;;;kBAIE,KAAK;;;;kBAIL,MAAM;;;;;;;;;;CAUvB,CAAA;AAED,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAA;IAC5B,cAAc;;;;;;;;;CASjB,CAAA"}
1
+ {"version":3,"file":"buttonCss.js","sourceRoot":"","sources":["../../src/css/buttonCss.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAEpC,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAA;;;;;;;CAOhC,CAAA;AAED,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,KAAa,EAAE,KAAa,EAAE,MAAc,EAAE,EAAE,CAAC,GAAG,CAAA;IAC1E,cAAc;;;;yBAIO,KAAK;WACnB,KAAK;;;;kBAIE,KAAK;;;;kBAIL,MAAM;;;;;;;;;;CAUvB,CAAA;AAED,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAA;IAC5B,cAAc;;;;;;;;;;CAUjB,CAAA"}
@@ -14,6 +14,7 @@ export const setupTranslation = (translations, options) => {
14
14
  i18next.use(initReactI18next).use(ICU);
15
15
  const query = new URLSearchParams(window.location.search);
16
16
  const locale = query.get('locale') || 'en';
17
+ document.documentElement.lang = locale;
17
18
  i18next.init({
18
19
  lng: locale,
19
20
  debug: process.env.NODE_ENV === 'development',
@@ -1 +1 @@
1
- {"version":3,"file":"translation.util.js","sourceRoot":"","sources":["../../src/utilities/translation.util.ts"],"names":[],"mappings":"AAAA,OAAO,OAAgC,MAAM,SAAS,CAAA;AACtD,OAAO,GAAG,MAAM,aAAa,CAAA;AAC7B,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,iBAAiB,CAAA;AACxB,OAAO,iBAAiB,CAAA;AACxB,OAAO,iBAAiB,CAAA;AACxB,OAAO,EAAC,gBAAgB,EAAC,MAAM,eAAe,CAAA;AAE9C;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,YAAsB,EAAE,OAAqB,EAAE,EAAE;IAChF,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IAEtC,MAAM,KAAK,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;IACzD,MAAM,MAAM,GAAG,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI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,aAAa;QAC7C,WAAW,EAAE,IAAI;QACjB,YAAY,EAAE,KAAK;QACnB,WAAW,EAAE,KAAK;QAClB,SAAS,EAAE,YAAY;QACvB,GAAG,OAAO;KACX,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAA;IAEvC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;AACtB,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,82 +1,78 @@
1
- {
2
- "name": "@gamepark/react-game",
3
- "version": "7.1.0",
4
- "type": "module",
5
- "description": "React components & tools to create a Board Game user interface for Game Park",
6
- "author": "Romain Fromi <romain@game-park.com> (https://game-park.com/)",
7
- "license": "ISC",
8
- "main": "dist/index.js",
9
- "types": "dist/index.d.ts",
10
- "files": [
11
- "dist"
12
- ],
13
- "publishConfig": {
14
- "access": "public"
15
- },
16
- "scripts": {
17
- "build": "tsc",
18
- "prepack": "yarn build",
19
- "linkgp": "yarn link ../rules-api ../react-client -r",
20
- "unlinkgp": "yarn unlink ../react-client ../rules-api"
21
- },
22
- "dependencies": {
23
- "@apollo/client": "^4.0.5",
24
- "@datadog/browser-logs": "^6.19.0",
25
- "@dnd-kit/modifiers": "^9.0.0",
26
- "@gamepark/avataaars": "~3.0.0",
27
- "@gamepark/react-client": "~7.1.0",
28
- "dayjs": "^1.11.18",
29
- "fscreen": "^1.2.0",
30
- "graphql": "^16.11.0",
31
- "i18next-icu": "^2.4.0",
32
- "immer": "^10.1.3",
33
- "intl-messageformat": "^10.7.16",
34
- "nosleep.js": "^0.12.0",
35
- "o9n": "^2.1.1",
36
- "react-infinite-scroll-component": "^6.1.0",
37
- "react-merge-refs": "^3.0.2",
38
- "react-zoom-pan-pinch": "3.7.0",
39
- "rxjs": "^7.8.2",
40
- "use-long-press": "^3.3.0"
41
- },
42
- "devDependencies": {
43
- "@dnd-kit/core": "^6.3.1",
44
- "@emotion/react": "^11.14.0",
45
- "@fortawesome/fontawesome-svg-core": "^7.0.1",
46
- "@fortawesome/free-regular-svg-icons": "^7.0.1",
47
- "@fortawesome/free-solid-svg-icons": "^7.0.1",
48
- "@fortawesome/react-fontawesome": "^3.0.2",
49
- "@gamepark/rules-api": "^7.1.0",
50
- "@types/fscreen": "^1.0.4",
51
- "@types/node": "^24.5.0",
52
- "@types/react": "^19.1.13",
53
- "@types/react-dom": "^19.1.9",
54
- "es-toolkit": "^1.39.10",
55
- "i18next": "^25.5.2",
56
- "react": "^19.1.1",
57
- "react-dom": "^19.1.1",
58
- "react-i18next": "^15.7.3",
59
- "react-redux": "^9.2.0",
60
- "typescript": "^5.9.2"
61
- },
62
- "peerDependencies": {
63
- "@dnd-kit/core": "^6.3.1",
64
- "@emotion/react": "^11.14.0",
65
- "@fortawesome/fontawesome-svg-core": "^7.0.1",
66
- "@fortawesome/free-regular-svg-icons": "^7.0.1",
67
- "@fortawesome/free-solid-svg-icons": "^7.0.1",
68
- "@fortawesome/react-fontawesome": "^3.0.2",
69
- "@gamepark/rules-api": "^7.1.0",
70
- "es-toolkit": "^1.39.10",
71
- "i18next": "^25.5.2",
72
- "react": "^19.1.1",
73
- "react-dom": "^19.1.1",
74
- "react-i18next": "^15.7.3",
75
- "react-redux": "^9.2.0"
76
- },
77
- "resolutions": {
78
- "@gamepark/rules-api": "portal:../rules-api",
79
- "@gamepark/react-client": "portal:../react-client"
80
- },
81
- "packageManager": "yarn@4.9.4"
82
- }
1
+ {
2
+ "name": "@gamepark/react-game",
3
+ "version": "7.2.0",
4
+ "type": "module",
5
+ "description": "React components & tools to create a Board Game user interface for Game Park",
6
+ "author": "Romain Fromi <romain@game-park.com> (https://game-park.com/)",
7
+ "license": "ISC",
8
+ "main": "dist/index.js",
9
+ "types": "dist/index.d.ts",
10
+ "files": [
11
+ "dist"
12
+ ],
13
+ "publishConfig": {
14
+ "access": "public"
15
+ },
16
+ "scripts": {
17
+ "build": "tsc",
18
+ "prepack": "yarn build",
19
+ "linkgp": "yarn link ../rules-api ../react-client -r",
20
+ "unlinkgp": "yarn unlink ../react-client ../rules-api"
21
+ },
22
+ "dependencies": {
23
+ "@apollo/client": "^4.0.5",
24
+ "@datadog/browser-logs": "^6.19.0",
25
+ "@dnd-kit/modifiers": "^9.0.0",
26
+ "@gamepark/avataaars": "~3.0.0",
27
+ "@gamepark/react-client": "~7.2.0",
28
+ "dayjs": "^1.11.18",
29
+ "fscreen": "^1.2.0",
30
+ "graphql": "^16.11.0",
31
+ "i18next-icu": "^2.4.0",
32
+ "immer": "^10.1.3",
33
+ "intl-messageformat": "^10.7.16",
34
+ "nosleep.js": "^0.12.0",
35
+ "o9n": "^2.1.1",
36
+ "react-infinite-scroll-component": "^6.1.0",
37
+ "react-merge-refs": "^3.0.2",
38
+ "react-zoom-pan-pinch": "3.7.0",
39
+ "rxjs": "^7.8.2",
40
+ "use-long-press": "^3.3.0"
41
+ },
42
+ "devDependencies": {
43
+ "@dnd-kit/core": "^6.3.1",
44
+ "@emotion/react": "^11.14.0",
45
+ "@fortawesome/fontawesome-svg-core": "^7.0.1",
46
+ "@fortawesome/free-regular-svg-icons": "^7.0.1",
47
+ "@fortawesome/free-solid-svg-icons": "^7.0.1",
48
+ "@fortawesome/react-fontawesome": "^3.0.2",
49
+ "@gamepark/rules-api": "^7.2.0",
50
+ "@types/fscreen": "^1.0.4",
51
+ "@types/node": "^24.5.0",
52
+ "@types/react": "^19.1.13",
53
+ "@types/react-dom": "^19.1.9",
54
+ "es-toolkit": "^1.39.10",
55
+ "i18next": "^25.5.2",
56
+ "react": "^19.1.1",
57
+ "react-dom": "^19.1.1",
58
+ "react-i18next": "^15.7.3",
59
+ "react-redux": "^9.2.0",
60
+ "typescript": "^5.9.2"
61
+ },
62
+ "peerDependencies": {
63
+ "@dnd-kit/core": "^6.3.1",
64
+ "@emotion/react": "^11.14.0",
65
+ "@fortawesome/fontawesome-svg-core": "^7.0.1",
66
+ "@fortawesome/free-regular-svg-icons": "^7.0.1",
67
+ "@fortawesome/free-solid-svg-icons": "^7.0.1",
68
+ "@fortawesome/react-fontawesome": "^3.0.2",
69
+ "@gamepark/rules-api": "^7.2.0",
70
+ "es-toolkit": "^1.39.10",
71
+ "i18next": "^25.5.2",
72
+ "react": "^19.1.1",
73
+ "react-dom": "^19.1.1",
74
+ "react-i18next": "^15.7.3",
75
+ "react-redux": "^9.2.0"
76
+ },
77
+ "packageManager": "yarn@4.9.4"
78
+ }