koffing 0.5.0 → 2.0.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.
- package/LICENSE +2 -2
- package/README.md +64 -151
- package/dist/data-CP51LAc9.cjs +404 -0
- package/dist/data-CRHBhbCJ.js +345 -0
- package/dist/index.cjs +441 -0
- package/dist/index.d.cts +29 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.js +433 -0
- package/dist/types-BVzP_Ko4.d.cts +62 -0
- package/dist/types-BVzP_Ko4.d.ts +62 -0
- package/dist/validator.cjs +3563 -0
- package/dist/validator.d.cts +14 -0
- package/dist/validator.d.ts +14 -0
- package/dist/validator.js +3562 -0
- package/package.json +46 -41
- package/Makefile +0 -21
- package/build/asset-manifest.json +0 -22
- package/build/favicon.png +0 -0
- package/build/index.html +0 -1
- package/build/precache-manifest.5382b78dea2866c8a94cee003da35d84.js +0 -26
- package/build/robots.txt +0 -3
- package/build/service-worker.js +0 -39
- package/build/static/css/main.102b9840.chunk.css +0 -2
- package/build/static/css/main.102b9840.chunk.css.map +0 -1
- package/build/static/js/2.4b3dd85a.chunk.js +0 -3
- package/build/static/js/2.4b3dd85a.chunk.js.LICENSE.txt +0 -67
- package/build/static/js/2.4b3dd85a.chunk.js.map +0 -1
- package/build/static/js/main.07f66bec.chunk.js +0 -2
- package/build/static/js/main.07f66bec.chunk.js.map +0 -1
- package/build/static/js/runtime-main.525bb0ff.js +0 -2
- package/build/static/js/runtime-main.525bb0ff.js.map +0 -1
- package/public/favicon.png +0 -0
- package/public/index.html +0 -30
- package/public/robots.txt +0 -3
- package/src/App.test.js +0 -9
- package/src/components/App.js +0 -18
- package/src/components/AppFooter/AppFooter.css.js +0 -12
- package/src/components/AppFooter/AppFooter.js +0 -31
- package/src/components/AppFooter/index.js +0 -3
- package/src/components/AppHeader/AppHeader.css.js +0 -21
- package/src/components/AppHeader/AppHeader.js +0 -34
- package/src/components/AppHeader/index.js +0 -3
- package/src/components/Board/Board.css.js +0 -21
- package/src/components/Board/Board.js +0 -110
- package/src/components/Board/index.js +0 -3
- package/src/components/BoardInput/BoardInput.css.js +0 -14
- package/src/components/BoardInput/BoardInput.js +0 -36
- package/src/components/BoardInput/index.js +0 -3
- package/src/components/BoardOutput/BoardOutput.css.js +0 -17
- package/src/components/BoardOutput/BoardOutput.js +0 -36
- package/src/components/BoardOutput/index.js +0 -3
- package/src/components/Code/Code.css.js +0 -10
- package/src/components/Code/Code.js +0 -28
- package/src/components/Code/index.js +0 -3
- package/src/components/StyledComponent.js +0 -24
- package/src/components/ThemedApp.js +0 -25
- package/src/core/Koffing.js +0 -71
- package/src/core/Pokemon.js +0 -181
- package/src/core/PokemonTeam.js +0 -78
- package/src/core/PokemonTeamSet.js +0 -52
- package/src/core/ShowdownParser.js +0 -280
- package/src/core/index.js +0 -7
- package/src/img/koffing-shiny.png +0 -0
- package/src/img/koffing.png +0 -0
- package/src/index.css +0 -42
- package/src/index.js +0 -17
- package/src/serviceWorker.js +0 -141
- package/src/setupTests.js +0 -5
- package/src/teams/example.koffing.js +0 -25
- package/src/tools/base64.js +0 -25
- package/src/tools/history.js +0 -17
- package/src/tools/index.js +0 -4
- package/src/variables.json +0 -5
package/package.json
CHANGED
|
@@ -1,52 +1,57 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "koffing",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "A typed Pokémon Showdown team parser and formatter.",
|
|
5
|
+
"license": "MIT",
|
|
4
6
|
"repository": {
|
|
7
|
+
"type": "git",
|
|
5
8
|
"url": "https://github.com/itsjavi/koffing",
|
|
6
|
-
"
|
|
9
|
+
"directory": "packages/koffing"
|
|
7
10
|
},
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
|
|
11
|
+
"files": [
|
|
12
|
+
"dist",
|
|
13
|
+
"README.md",
|
|
14
|
+
"LICENSE"
|
|
15
|
+
],
|
|
16
|
+
"type": "module",
|
|
17
|
+
"sideEffects": false,
|
|
18
|
+
"main": "./dist/index.cjs",
|
|
19
|
+
"module": "./dist/index.js",
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"import": {
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
25
|
+
"default": "./dist/index.js"
|
|
26
|
+
},
|
|
27
|
+
"require": {
|
|
28
|
+
"types": "./dist/index.d.cts",
|
|
29
|
+
"default": "./dist/index.cjs"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"./validator": {
|
|
33
|
+
"import": {
|
|
34
|
+
"types": "./dist/validator.d.ts",
|
|
35
|
+
"default": "./dist/validator.js"
|
|
36
|
+
},
|
|
37
|
+
"require": {
|
|
38
|
+
"types": "./dist/validator.d.cts",
|
|
39
|
+
"default": "./dist/validator.cjs"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
21
42
|
},
|
|
22
43
|
"scripts": {
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
"eslintConfig": {
|
|
30
|
-
"extends": "react-app"
|
|
31
|
-
},
|
|
32
|
-
"browserslist": {
|
|
33
|
-
"production": [
|
|
34
|
-
">0.2%",
|
|
35
|
-
"not dead",
|
|
36
|
-
"not op_mini all"
|
|
37
|
-
],
|
|
38
|
-
"development": [
|
|
39
|
-
"last 1 chrome version",
|
|
40
|
-
"last 1 firefox version",
|
|
41
|
-
"last 1 safari version"
|
|
42
|
-
]
|
|
43
|
-
},
|
|
44
|
-
"ghPagesDeploy": {
|
|
45
|
-
"repository": "git@github.com:itsjavi/koffing.git",
|
|
46
|
-
"directory": "build",
|
|
47
|
-
"commitMessage": "update gh-pages build"
|
|
44
|
+
"build": "tsdown",
|
|
45
|
+
"lookups:generate": "node scripts/dump-identifiers.mjs",
|
|
46
|
+
"lookups:check": "node scripts/dump-identifiers.mjs --check",
|
|
47
|
+
"test": "vitest run",
|
|
48
|
+
"bench": "vitest bench --run --reporter=verbose",
|
|
49
|
+
"typecheck": "tsc -p tsconfig.json"
|
|
48
50
|
},
|
|
49
51
|
"devDependencies": {
|
|
50
|
-
"
|
|
52
|
+
"@types/node": "^26.6.2",
|
|
53
|
+
"pokemon-showdown": "^0.11.11",
|
|
54
|
+
"tsdown": "^0.23.0",
|
|
55
|
+
"vitest": "^5.0.1"
|
|
51
56
|
}
|
|
52
57
|
}
|
package/Makefile
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
default:build
|
|
2
|
-
|
|
3
|
-
clean:
|
|
4
|
-
rm -rf ./build
|
|
5
|
-
|
|
6
|
-
build:
|
|
7
|
-
yarn build
|
|
8
|
-
|
|
9
|
-
audit-fix:
|
|
10
|
-
rm -rf package-lock.json ./node_modules
|
|
11
|
-
npm i --package-lock-only
|
|
12
|
-
npm audit fix
|
|
13
|
-
rm -f yarn.lock
|
|
14
|
-
yarn import
|
|
15
|
-
rm -f package-lock.json
|
|
16
|
-
|
|
17
|
-
gh-pages: build
|
|
18
|
-
npx gh-pages-publish
|
|
19
|
-
|
|
20
|
-
$(V).SILENT:
|
|
21
|
-
.PHONY: build
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"files": {
|
|
3
|
-
"main.css": "/koffing/static/css/main.102b9840.chunk.css",
|
|
4
|
-
"main.js": "/koffing/static/js/main.07f66bec.chunk.js",
|
|
5
|
-
"main.js.map": "/koffing/static/js/main.07f66bec.chunk.js.map",
|
|
6
|
-
"runtime-main.js": "/koffing/static/js/runtime-main.525bb0ff.js",
|
|
7
|
-
"runtime-main.js.map": "/koffing/static/js/runtime-main.525bb0ff.js.map",
|
|
8
|
-
"static/js/2.4b3dd85a.chunk.js": "/koffing/static/js/2.4b3dd85a.chunk.js",
|
|
9
|
-
"static/js/2.4b3dd85a.chunk.js.map": "/koffing/static/js/2.4b3dd85a.chunk.js.map",
|
|
10
|
-
"index.html": "/koffing/index.html",
|
|
11
|
-
"precache-manifest.5382b78dea2866c8a94cee003da35d84.js": "/koffing/precache-manifest.5382b78dea2866c8a94cee003da35d84.js",
|
|
12
|
-
"service-worker.js": "/koffing/service-worker.js",
|
|
13
|
-
"static/css/main.102b9840.chunk.css.map": "/koffing/static/css/main.102b9840.chunk.css.map",
|
|
14
|
-
"static/js/2.4b3dd85a.chunk.js.LICENSE.txt": "/koffing/static/js/2.4b3dd85a.chunk.js.LICENSE.txt"
|
|
15
|
-
},
|
|
16
|
-
"entrypoints": [
|
|
17
|
-
"static/js/runtime-main.525bb0ff.js",
|
|
18
|
-
"static/js/2.4b3dd85a.chunk.js",
|
|
19
|
-
"static/css/main.102b9840.chunk.css",
|
|
20
|
-
"static/js/main.07f66bec.chunk.js"
|
|
21
|
-
]
|
|
22
|
-
}
|
package/build/favicon.png
DELETED
|
Binary file
|
package/build/index.html
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><title>Koffing - Pokemon Showdown Team parser | Online Pokemon Showdown Team parser</title><link rel="shortcut icon" type="image/png" href="/koffing/favicon.png"/><script async src="https://www.googletagmanager.com/gtag/js?id=UA-85082661-2"></script><script>function gtag(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],gtag("js",new Date),gtag("config","UA-85082661-2")</script><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Exo+2:300,400,500"><link href="https://use.fontawesome.com/releases/v5.14.0/css/all.css" rel="stylesheet"><link href="/koffing/static/css/main.102b9840.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript and a modern browser to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,f,i=r[0],l=r[1],a=r[2],c=0,s=[];c<i.length;c++)f=i[c],Object.prototype.hasOwnProperty.call(o,f)&&o[f]&&s.push(o[f][0]),o[f]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);for(p&&p(r);s.length;)s.shift()();return u.push.apply(u,a||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,i=1;i<t.length;i++){var l=t[i];0!==o[l]&&(n=!1)}n&&(u.splice(r--,1),e=f(f.s=t[0]))}return e}var n={},o={1:0},u=[];function f(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,f),t.l=!0,t.exports}f.m=e,f.c=n,f.d=function(e,r,t){f.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},f.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(e,r){if(1&r&&(e=f(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(f.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)f.d(t,n,function(r){return e[r]}.bind(null,n));return t},f.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(r,"a",r),r},f.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},f.p="/koffing/";var i=this.webpackJsonpkoffing=this.webpackJsonpkoffing||[],l=i.push.bind(i);i.push=r,i=i.slice();for(var a=0;a<i.length;a++)r(i[a]);var p=l;t()}([])</script><script src="/koffing/static/js/2.4b3dd85a.chunk.js"></script><script src="/koffing/static/js/main.07f66bec.chunk.js"></script></body></html>
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
self.__precacheManifest = (self.__precacheManifest || []).concat([
|
|
2
|
-
{
|
|
3
|
-
"revision": "98f25614ba5fe5e04f1e0233a92a26c7",
|
|
4
|
-
"url": "/koffing/index.html"
|
|
5
|
-
},
|
|
6
|
-
{
|
|
7
|
-
"revision": "c500eb4a5760ca0bb4bc",
|
|
8
|
-
"url": "/koffing/static/css/main.102b9840.chunk.css"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"revision": "a3524f4864f51e0ac239",
|
|
12
|
-
"url": "/koffing/static/js/2.4b3dd85a.chunk.js"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"revision": "3f0e7270d9361d86cdedbbc2d6ca185f",
|
|
16
|
-
"url": "/koffing/static/js/2.4b3dd85a.chunk.js.LICENSE.txt"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"revision": "c500eb4a5760ca0bb4bc",
|
|
20
|
-
"url": "/koffing/static/js/main.07f66bec.chunk.js"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"revision": "95c593fd36946693659b",
|
|
24
|
-
"url": "/koffing/static/js/runtime-main.525bb0ff.js"
|
|
25
|
-
}
|
|
26
|
-
]);
|
package/build/robots.txt
DELETED
package/build/service-worker.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Welcome to your Workbox-powered service worker!
|
|
3
|
-
*
|
|
4
|
-
* You'll need to register this file in your web app and you should
|
|
5
|
-
* disable HTTP caching for this file too.
|
|
6
|
-
* See https://goo.gl/nhQhGp
|
|
7
|
-
*
|
|
8
|
-
* The rest of the code is auto-generated. Please don't update this file
|
|
9
|
-
* directly; instead, make changes to your Workbox build configuration
|
|
10
|
-
* and re-run your build process.
|
|
11
|
-
* See https://goo.gl/2aRDsh
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
|
|
15
|
-
|
|
16
|
-
importScripts(
|
|
17
|
-
"/koffing/precache-manifest.5382b78dea2866c8a94cee003da35d84.js"
|
|
18
|
-
);
|
|
19
|
-
|
|
20
|
-
self.addEventListener('message', (event) => {
|
|
21
|
-
if (event.data && event.data.type === 'SKIP_WAITING') {
|
|
22
|
-
self.skipWaiting();
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
workbox.core.clientsClaim();
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* The workboxSW.precacheAndRoute() method efficiently caches and responds to
|
|
30
|
-
* requests for URLs in the manifest.
|
|
31
|
-
* See https://goo.gl/S9QRab
|
|
32
|
-
*/
|
|
33
|
-
self.__precacheManifest = [].concat(self.__precacheManifest || []);
|
|
34
|
-
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
|
|
35
|
-
|
|
36
|
-
workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("/koffing/index.html"), {
|
|
37
|
-
|
|
38
|
-
blacklist: [/^\/_/,/\/[^/?]+\.[^/]+$/],
|
|
39
|
-
});
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
html{box-sizing:border-box;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*,:after,:before{box-sizing:inherit}body{margin:0;background-color:#fafafa}@media print{body{background-color:#fff}}a{color:#6b71b8}.koffing-sprite{-webkit-animation-name:koffing-animation;animation-name:koffing-animation;-webkit-animation-duration:.7s;animation-duration:.7s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-direction:alternate;animation-direction:alternate;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes koffing-animation{0%{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-2px,-3px);transform:translate(-2px,-3px)}}@keyframes koffing-animation{0%{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-2px,-3px);transform:translate(-2px,-3px)}}
|
|
2
|
-
/*# sourceMappingURL=main.102b9840.chunk.css.map */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["index.css"],"names":[],"mappings":"AAAA,KACE,qBAAsB,CACtB,kCAAmC,CACnC,iCACF,CAEA,iBACE,kBACF,CAEA,KACE,QAAS,CACT,wBACF,CAEA,aACE,KACE,qBACF,CACF,CAEA,EACE,aACF,CAEA,gBACE,wCAAiC,CAAjC,gCAAiC,CACjC,8BAAyB,CAAzB,sBAAyB,CACzB,0CAAmC,CAAnC,kCAAmC,CACnC,qCAA8B,CAA9B,6BAA8B,CAC9B,6CAAsC,CAAtC,qCACF,CAGA,qCACE,GACE,8BAA8B,CAA9B,sBACF,CACA,GACE,sCAAgC,CAAhC,8BACF,CACF,CAPA,6BACE,GACE,8BAA8B,CAA9B,sBACF,CACA,GACE,sCAAgC,CAAhC,8BACF,CACF","file":"main.102b9840.chunk.css","sourcesContent":["html {\n box-sizing: border-box;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n*, *::before, *::after {\n box-sizing: inherit;\n}\n\nbody {\n margin: 0;\n background-color: #fafafa;\n}\n\n@media print {\n body {\n background-color: #fff;\n }\n}\n\na {\n color: #6B71B8;\n}\n\n.koffing-sprite {\n animation-name: koffing-animation;\n animation-duration: 700ms;\n animation-iteration-count: infinite;\n animation-direction: alternate;\n animation-timing-function: ease-in-out;\n}\n\n/* Standard syntax */\n@keyframes koffing-animation {\n 0% {\n transform: translate(0px, 0px);\n }\n 100% {\n transform: translate(-2px, -3px);\n }\n}\n"]}
|