@gamelearn/arcade-components 1.29.3-hotfix-retry-test-2 → 1.29.3-hotfix-decision

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
@@ -1,106 +1,106 @@
1
- # Arcade Components
2
- > librería de componentes para Arcade (aka engine 2.0)
3
-
4
- [![NPM](https://img.shields.io/npm/v/arcade-components.svg)](https://www.npmjs.com/package/arcade-components) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
5
-
6
- ## Install
7
-
8
- ```bash
9
- yarn add @gamelearn/arcade-components
10
- ```
11
-
12
- ## Usage
13
-
14
- ```jsx
15
- import React, { Component } from 'react';
16
-
17
- import { Button } from 'arcade-components';
18
-
19
- export default class App extends Component {
20
- render() {
21
- return (
22
- <div>
23
- <Button>Enjoy</Button>
24
- </div>
25
- );
26
- }
27
- }
28
-
29
- ```
30
-
31
- ## Generar version hotfix para arcade/master-stg
32
-
33
- Para generar una version hotfix nos vamos al commit que desplego la version que utiliza actualmente arcade/master-stg y creamos una rama sobre ella.
34
-
35
- Generamos los cambios o hacemos cherrypick de ellos si ya estan creados y una vez terminemos con los cambios tendremos que cambiar la version del package.json a una tal que asi :
36
-
37
- `"version": "1.3.5-fix-1",`
38
-
39
- Habiendo cambiado ya la version para publicarla ejecutamos:
40
- * `npm run publish-hotfix`
41
-
42
- Una vez publicada en npm ir a la versión master de arcade y sustituir la versión de arcade-components.
43
-
44
- ## Available Scripts
45
-
46
- Para ver Storybook en local
47
-
48
- ### `yarn start`
49
-
50
- Para compilar la librería a dist
51
-
52
- ### `yarn compile`
53
-
54
- Para dejar a babel observando cambios y ejecuntando auto-compilación puedes pasarle --watch
55
-
56
- `yarn compile --watch`
57
-
58
- ### `yarn generate <componentName>`
59
-
60
- Para añadir un componente nuevo se recomienda usar el generador automático que hara el scaffolding básico de dicho componente, coge el nombre como primer parámetro y si lo llamas sin parámetro te lo preguntará por el prompt.
61
-
62
- `yarn generate`
63
-
64
- ## How to link arcade-components in other repos (WIP)
65
-
66
- Para trabajar con arcade-components en local si necesidad de subir a git ni a npm no podemos trabajar con `yarn link` ya que da un error con los hooks de react.
67
-
68
- Cómo solución alternativa podemos instalar `yalc` que permite publicar el paquete en local e importarlo desde `arcade`.
69
-
70
- ```bash
71
- yarn global add yalc
72
- ```
73
- Si teneis problemas instalándolo en global :
74
- yarn global add yalc --prefix /usr/local
75
-
76
- Para generar el paquete en el store local:
77
-
78
- ```bash
79
- yarn
80
- yarn compile
81
- yalc publish o yarn yalc publish
82
- ```
83
-
84
- Si queremos escuchar los cambios y que se vayan publicando en el store de yalc se puede hacer directamente con:
85
-
86
- ```bash
87
- yarn watch
88
- ```
89
-
90
- Después, en el repositorio de `arcade` tendremos que linkar el paquete generado de la siguiente forma:
91
-
92
- ```bash
93
- yalc link @gamelearn/arcade-components
94
- ```
95
-
96
- Y voilá, ya podremos trabajar con arcade y arcade-components en local sin publicar nada.
97
-
98
- Una vez terminemos de trabajar con el paquete linkado en `arcade`, no nos olvidemos de borrar el link:
99
-
100
- ```bash
101
- yalc remove --all
102
- ```
103
-
104
- ## License
105
-
106
- UNLICENSED © [gamelearn](https://github.com/gamelearn)
1
+ # Arcade Components
2
+ > librería de componentes para Arcade (aka engine 2.0)
3
+
4
+ [![NPM](https://img.shields.io/npm/v/arcade-components.svg)](https://www.npmjs.com/package/arcade-components) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
5
+
6
+ ## Install
7
+
8
+ ```bash
9
+ yarn add @gamelearn/arcade-components
10
+ ```
11
+
12
+ ## Usage
13
+
14
+ ```jsx
15
+ import React, { Component } from 'react';
16
+
17
+ import { Button } from 'arcade-components';
18
+
19
+ export default class App extends Component {
20
+ render() {
21
+ return (
22
+ <div>
23
+ <Button>Enjoy</Button>
24
+ </div>
25
+ );
26
+ }
27
+ }
28
+
29
+ ```
30
+
31
+ ## Generar version hotfix para arcade/master-stg
32
+
33
+ Para generar una version hotfix nos vamos al commit que desplego la version que utiliza actualmente arcade/master-stg y creamos una rama sobre ella.
34
+
35
+ Generamos los cambios o hacemos cherrypick de ellos si ya estan creados y una vez terminemos con los cambios tendremos que cambiar la version del package.json a una tal que asi :
36
+
37
+ `"version": "1.3.5-fix-1",`
38
+
39
+ Habiendo cambiado ya la version para publicarla ejecutamos:
40
+ * `npm run publish-hotfix`
41
+
42
+ Una vez publicada en npm ir a la versión master de arcade y sustituir la versión de arcade-components.
43
+
44
+ ## Available Scripts
45
+
46
+ Para ver Storybook en local
47
+
48
+ ### `yarn start`
49
+
50
+ Para compilar la librería a dist
51
+
52
+ ### `yarn compile`
53
+
54
+ Para dejar a babel observando cambios y ejecuntando auto-compilación puedes pasarle --watch
55
+
56
+ `yarn compile --watch`
57
+
58
+ ### `yarn generate <componentName>`
59
+
60
+ Para añadir un componente nuevo se recomienda usar el generador automático que hara el scaffolding básico de dicho componente, coge el nombre como primer parámetro y si lo llamas sin parámetro te lo preguntará por el prompt.
61
+
62
+ `yarn generate`
63
+
64
+ ## How to link arcade-components in other repos (WIP)
65
+
66
+ Para trabajar con arcade-components en local si necesidad de subir a git ni a npm no podemos trabajar con `yarn link` ya que da un error con los hooks de react.
67
+
68
+ Cómo solución alternativa podemos instalar `yalc` que permite publicar el paquete en local e importarlo desde `arcade`.
69
+
70
+ ```bash
71
+ yarn global add yalc
72
+ ```
73
+ Si teneis problemas instalándolo en global :
74
+ yarn global add yalc --prefix /usr/local
75
+
76
+ Para generar el paquete en el store local:
77
+
78
+ ```bash
79
+ yarn
80
+ yarn compile
81
+ yalc publish o yarn yalc publish
82
+ ```
83
+
84
+ Si queremos escuchar los cambios y que se vayan publicando en el store de yalc se puede hacer directamente con:
85
+
86
+ ```bash
87
+ yarn watch
88
+ ```
89
+
90
+ Después, en el repositorio de `arcade` tendremos que linkar el paquete generado de la siguiente forma:
91
+
92
+ ```bash
93
+ yalc link @gamelearn/arcade-components
94
+ ```
95
+
96
+ Y voilá, ya podremos trabajar con arcade y arcade-components en local sin publicar nada.
97
+
98
+ Una vez terminemos de trabajar con el paquete linkado en `arcade`, no nos olvidemos de borrar el link:
99
+
100
+ ```bash
101
+ yalc remove --all
102
+ ```
103
+
104
+ ## License
105
+
106
+ UNLICENSED © [gamelearn](https://github.com/gamelearn)
@@ -709,6 +709,7 @@ var DialogComponent = function DialogComponent(_ref) {
709
709
  portal: container ? {
710
710
  current: container
711
711
  } : undefined,
712
+ onOcclude: function onOcclude() {},
712
713
  calculatePosition: function calculatePosition() {
713
714
  return [0, 0];
714
715
  }
package/package.json CHANGED
@@ -1,113 +1,113 @@
1
- {
2
- "name": "@gamelearn/arcade-components",
3
- "author": "Gamelearn",
4
- "license": "unlicense",
5
- "version": "1.29.3-hotfix-retry-test-2",
6
- "main": "dist/index.js",
7
- "files": [
8
- "dist",
9
- "README.md"
10
- ],
11
- "repository": {
12
- "type": "git",
13
- "url": "https://github.com/gamelearn/arcade-components"
14
- },
15
- "dependencies": {
16
- "@gamelearn/arcade-styles": "0.15.0",
17
- "@gamelearn/arcade-three-core": "1.14.5",
18
- "@react-three/drei": "9.4.3",
19
- "@react-three/fiber": "8.0.17",
20
- "@testing-library/jest-dom": "^5.16.4",
21
- "@testing-library/react": "^13.1.1",
22
- "@testing-library/user-event": "13.5.0",
23
- "global": "^4.4.0",
24
- "gsap": "^3.10.1",
25
- "hls.js": "0.12.4",
26
- "html-react-parser": "^1.4.0",
27
- "interactjs": "^1.10.11",
28
- "konva": "^7.2.5",
29
- "prop-types": "15.7.2",
30
- "react-konva": "^18.1.0",
31
- "react-konva-utils": "^0.3.0",
32
- "react-pdf": "5.2.0",
33
- "react-promise-suspense": "0.3.3",
34
- "react-typist": "^2.0.5",
35
- "three": "0.139.2",
36
- "web-vitals": "0.2.4"
37
- },
38
- "scripts": {
39
- "start": "npm run storybook",
40
- "clean": "rimraf dist",
41
- "watch": "npx nodemon -e js --ignore dist --exec \"yarn compile && yalc push --changed\"",
42
- "compile": "npm run clean && cross-env NODE_ENV=production babel src -d dist --ignore src/**/*.stories.js,src/**/*.test.js,src/setupTests.js",
43
- "test": "react-scripts test --watchAll=false",
44
- "test:watch": "react-scripts test",
45
- "eject": "react-scripts eject",
46
- "storybook": "start-storybook -p 6006 -s public",
47
- "build-storybook": "build-storybook -o build",
48
- "generate": "plop",
49
- "lint": "npx eslint src --ext js,json",
50
- "lint:fix": "npx eslint src --ext js,json --fix",
51
- "lint:quiet": "npx eslint src --ext js,json --quiet",
52
- "publish-hotfix": "yarn compile && npm publish && npm run version-tag",
53
- "version-tag": "P_VER=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') && git tag v$P_VER && git push origin v$P_VER"
54
- },
55
- "browserslist": {
56
- "production": [
57
- ">0.2%",
58
- "not dead",
59
- "not op_mini all"
60
- ],
61
- "development": [
62
- "last 1 chrome version",
63
- "last 1 firefox version",
64
- "last 1 safari version"
65
- ]
66
- },
67
- "devDependencies": {
68
- "@babel/cli": "7.12.10",
69
- "@babel/eslint-parser": "^7.15.8",
70
- "@babel/preset-env": "7.12.11",
71
- "@babel/preset-react": "7.12.10",
72
- "@gamelearn/version": "^1.3.1",
73
- "@react-three/test-renderer": "6.0.6",
74
- "@storybook/addon-actions": "6.1.11",
75
- "@storybook/addon-essentials": "6.1.11",
76
- "@storybook/addon-links": "6.1.11",
77
- "@storybook/addons": "^6.3.8",
78
- "@storybook/node-logger": "6.1.11",
79
- "@storybook/preset-create-react-app": "3.1.5",
80
- "@storybook/react": "6.1.11",
81
- "@storybook/theming": "^6.3.8",
82
- "babel-loader": "8.1.0",
83
- "cross-env": "7.0.3",
84
- "eslint-config-airbnb": "^18.2.1",
85
- "eslint-config-prettier": "^8.3.0",
86
- "eslint-plugin-json-format": "^2.0.1",
87
- "eslint-plugin-prettier": "^4.0.0",
88
- "husky": "4.3.0",
89
- "nodemon": "^2.0.13",
90
- "plop": "^2.7.4",
91
- "prettier": "^2.5.0",
92
- "react": "18.0.0",
93
- "react-dom": "18.0.0",
94
- "react-scripts": "4.0.1",
95
- "rimraf": "3.0.2"
96
- },
97
- "jest": {
98
- "transformIgnorePatterns": [
99
- "node_modules/(?!(three)/)"
100
- ],
101
- "moduleNameMapper": {
102
- "^react-pdf$": "react-pdf/dist/umd/entry.jest",
103
- "^react-konva-utils$": "react-pdf/dist/umd/entry.jest"
104
- }
105
- },
106
- "husky": {
107
- "hooks": {
108
- "prepare-commit-msg": "bash node_modules/@gamelearn/version/scripts/update_version.sh -p hooks.config ${HUSKY_GIT_PARAMS}",
109
- "post-commit": "bash node_modules/@gamelearn/version/scripts/after_version_update.sh -p hooks.config",
110
- "post-merge": "bash node_modules/@gamelearn/version/scripts/after_version_update.sh -p hooks.config"
111
- }
112
- }
113
- }
1
+ {
2
+ "name": "@gamelearn/arcade-components",
3
+ "author": "Gamelearn",
4
+ "license": "unlicense",
5
+ "version": "1.29.3-hotfix-decision",
6
+ "main": "dist/index.js",
7
+ "files": [
8
+ "dist",
9
+ "README.md"
10
+ ],
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/gamelearn/arcade-components"
14
+ },
15
+ "dependencies": {
16
+ "@gamelearn/arcade-styles": "0.15.0",
17
+ "@gamelearn/arcade-three-core": "1.14.5",
18
+ "@react-three/drei": "9.4.3",
19
+ "@react-three/fiber": "8.0.17",
20
+ "@testing-library/jest-dom": "^5.16.4",
21
+ "@testing-library/react": "^13.1.1",
22
+ "@testing-library/user-event": "13.5.0",
23
+ "global": "^4.4.0",
24
+ "gsap": "^3.10.1",
25
+ "hls.js": "0.12.4",
26
+ "html-react-parser": "^1.4.0",
27
+ "interactjs": "^1.10.11",
28
+ "konva": "^7.2.5",
29
+ "prop-types": "15.7.2",
30
+ "react-konva": "^18.1.0",
31
+ "react-konva-utils": "^0.3.0",
32
+ "react-pdf": "5.2.0",
33
+ "react-promise-suspense": "0.3.3",
34
+ "react-typist": "^2.0.5",
35
+ "three": "0.139.2",
36
+ "web-vitals": "0.2.4"
37
+ },
38
+ "scripts": {
39
+ "start": "npm run storybook",
40
+ "clean": "rimraf dist",
41
+ "watch": "npx nodemon -e js --ignore dist --exec \"yarn compile && yalc push --changed\"",
42
+ "compile": "npm run clean && cross-env NODE_ENV=production babel src -d dist --ignore src/**/*.stories.js,src/**/*.test.js,src/setupTests.js",
43
+ "test": "react-scripts test --watchAll=false",
44
+ "test:watch": "react-scripts test",
45
+ "eject": "react-scripts eject",
46
+ "storybook": "start-storybook -p 6006 -s public",
47
+ "build-storybook": "build-storybook -o build",
48
+ "generate": "plop",
49
+ "lint": "npx eslint src --ext js,json",
50
+ "lint:fix": "npx eslint src --ext js,json --fix",
51
+ "lint:quiet": "npx eslint src --ext js,json --quiet",
52
+ "publish-hotfix": "yarn compile && npm publish && npm run version-tag",
53
+ "version-tag": "P_VER=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') && git tag v$P_VER && git push origin v$P_VER"
54
+ },
55
+ "browserslist": {
56
+ "production": [
57
+ ">0.2%",
58
+ "not dead",
59
+ "not op_mini all"
60
+ ],
61
+ "development": [
62
+ "last 1 chrome version",
63
+ "last 1 firefox version",
64
+ "last 1 safari version"
65
+ ]
66
+ },
67
+ "devDependencies": {
68
+ "@babel/cli": "7.12.10",
69
+ "@babel/eslint-parser": "^7.15.8",
70
+ "@babel/preset-env": "7.12.11",
71
+ "@babel/preset-react": "7.12.10",
72
+ "@gamelearn/version": "^1.3.1",
73
+ "@react-three/test-renderer": "6.0.6",
74
+ "@storybook/addon-actions": "6.1.11",
75
+ "@storybook/addon-essentials": "6.1.11",
76
+ "@storybook/addon-links": "6.1.11",
77
+ "@storybook/addons": "^6.3.8",
78
+ "@storybook/node-logger": "6.1.11",
79
+ "@storybook/preset-create-react-app": "3.1.5",
80
+ "@storybook/react": "6.1.11",
81
+ "@storybook/theming": "^6.3.8",
82
+ "babel-loader": "8.1.0",
83
+ "cross-env": "7.0.3",
84
+ "eslint-config-airbnb": "^18.2.1",
85
+ "eslint-config-prettier": "^8.3.0",
86
+ "eslint-plugin-json-format": "^2.0.1",
87
+ "eslint-plugin-prettier": "^4.0.0",
88
+ "husky": "4.3.0",
89
+ "nodemon": "^2.0.13",
90
+ "plop": "^2.7.4",
91
+ "prettier": "^2.5.0",
92
+ "react": "18.0.0",
93
+ "react-dom": "18.0.0",
94
+ "react-scripts": "4.0.1",
95
+ "rimraf": "3.0.2"
96
+ },
97
+ "jest": {
98
+ "transformIgnorePatterns": [
99
+ "node_modules/(?!(three)/)"
100
+ ],
101
+ "moduleNameMapper": {
102
+ "^react-pdf$": "react-pdf/dist/umd/entry.jest",
103
+ "^react-konva-utils$": "react-pdf/dist/umd/entry.jest"
104
+ }
105
+ },
106
+ "husky": {
107
+ "hooks": {
108
+ "prepare-commit-msg": "bash node_modules/@gamelearn/version/scripts/update_version.sh -p hooks.config ${HUSKY_GIT_PARAMS}",
109
+ "post-commit": "bash node_modules/@gamelearn/version/scripts/after_version_update.sh -p hooks.config",
110
+ "post-merge": "bash node_modules/@gamelearn/version/scripts/after_version_update.sh -p hooks.config"
111
+ }
112
+ }
113
+ }