@willbooster/shared-lib-react 1.4.0 → 2.0.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":"VersionOverlay.cjs","sources":["../../src/VersionOverlay.tsx"],"sourcesContent":["import type React from 'react';\n\nconst css = `\n@media print {\n .wb-shared-version {\n display: none;\n }\n}`;\n\nexport const VersionOverlay: React.FC = () => (\n <>\n <style type=\"text/css\">{css}</style>\n <div\n className=\"wb-shared-version\"\n style={{\n bottom: 4,\n left: 4,\n opacity: 0.5,\n pointerEvents: 'none',\n position: 'fixed',\n userSelect: 'none',\n fontSize: '0.75rem',\n }}\n >\n {process.env.NEXT_PUBLIC_WB_VERSION || process.env.WB_VERSION || 'dev'} on{' '}\n {process.env.NEXT_PUBLIC_WB_ENV || process.env.WB_ENV || 'local'}\n </div>\n </>\n);\n"],"names":["_jsxs","jsxs","_Fragment","children","_jsx","jsx","type","className","style","bottom","left","opacity","pointerEvents","position","userSelect","fontSize","process","env","NEXT_PUBLIC_WB_VERSION","WB_VERSION","NEXT_PUBLIC_WB_ENV","WB_ENV"],"mappings":"
|
|
1
|
+
{"version":3,"file":"VersionOverlay.cjs","sources":["../../src/VersionOverlay.tsx"],"sourcesContent":["import type React from 'react';\n\nconst css = `\n@media print {\n .wb-shared-version {\n display: none;\n }\n}`;\n\nexport const VersionOverlay: React.FC = () => (\n <>\n <style type=\"text/css\">{css}</style>\n <div\n className=\"wb-shared-version\"\n style={{\n bottom: 4,\n left: 4,\n opacity: 0.5,\n pointerEvents: 'none',\n position: 'fixed',\n userSelect: 'none',\n fontSize: '0.75rem',\n }}\n >\n {process.env.NEXT_PUBLIC_WB_VERSION || process.env.WB_VERSION || 'dev'} on{' '}\n {process.env.NEXT_PUBLIC_WB_ENV || process.env.WB_ENV || 'local'}\n </div>\n </>\n);\n"],"names":["VersionOverlay","_jsxs","jsxs","_Fragment","children","_jsx","jsx","type","className","style","bottom","left","opacity","pointerEvents","position","userSelect","fontSize","process","env","NEXT_PUBLIC_WB_VERSION","WB_VERSION","NEXT_PUBLIC_WB_ENV","WB_ENV"],"mappings":"uEASwCA,IACtCC,EAAAC,KAAAC,WAAA,CAAAC,UACEC,EAAAC,IAAA,QAAA,CAAOC,KAAK,WAAUH,SATb,yEAUTH,EAAAC,KAAA,MAAA,CACEM,UAAU,oBACVC,MAAO,CACLC,OAAQ,EACRC,KAAM,EACNC,QAAS,GACTC,cAAe,OACfC,SAAU,QACVC,WAAY,OACZC,SAAU,WACVZ,SAEDa,CAAAA,QAAQC,IAAIC,wBAA0BF,QAAQC,IAAIE,YAAc,MAAM,MAAI,IAC1EH,QAAQC,IAAIG,oBAAsBJ,QAAQC,IAAII,QAAU"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VersionOverlay.js","sources":["../../src/VersionOverlay.tsx"],"sourcesContent":["import type React from 'react';\n\nconst css = `\n@media print {\n .wb-shared-version {\n display: none;\n }\n}`;\n\nexport const VersionOverlay: React.FC = () => (\n <>\n <style type=\"text/css\">{css}</style>\n <div\n className=\"wb-shared-version\"\n style={{\n bottom: 4,\n left: 4,\n opacity: 0.5,\n pointerEvents: 'none',\n position: 'fixed',\n userSelect: 'none',\n fontSize: '0.75rem',\n }}\n >\n {process.env.NEXT_PUBLIC_WB_VERSION || process.env.WB_VERSION || 'dev'} on{' '}\n {process.env.NEXT_PUBLIC_WB_ENV || process.env.WB_ENV || 'local'}\n </div>\n </>\n);\n"],"names":["VersionOverlay","_jsxs","_Fragment","children","_jsx","type","className","style","bottom","left","opacity","pointerEvents","position","userSelect","fontSize","process","env","NEXT_PUBLIC_WB_VERSION","WB_VERSION","NEXT_PUBLIC_WB_ENV","WB_ENV"],"mappings":"gEAEA,MAOaA,
|
|
1
|
+
{"version":3,"file":"VersionOverlay.js","sources":["../../src/VersionOverlay.tsx"],"sourcesContent":["import type React from 'react';\n\nconst css = `\n@media print {\n .wb-shared-version {\n display: none;\n }\n}`;\n\nexport const VersionOverlay: React.FC = () => (\n <>\n <style type=\"text/css\">{css}</style>\n <div\n className=\"wb-shared-version\"\n style={{\n bottom: 4,\n left: 4,\n opacity: 0.5,\n pointerEvents: 'none',\n position: 'fixed',\n userSelect: 'none',\n fontSize: '0.75rem',\n }}\n >\n {process.env.NEXT_PUBLIC_WB_VERSION || process.env.WB_VERSION || 'dev'} on{' '}\n {process.env.NEXT_PUBLIC_WB_ENV || process.env.WB_ENV || 'local'}\n </div>\n </>\n);\n"],"names":["VersionOverlay","_jsxs","_Fragment","children","_jsx","type","className","style","bottom","left","opacity","pointerEvents","position","userSelect","fontSize","process","env","NEXT_PUBLIC_WB_VERSION","WB_VERSION","NEXT_PUBLIC_WB_ENV","WB_ENV"],"mappings":"gEAEA,MAOaA,EAA2BA,IACtCC,EAAAC,EAAA,CAAAC,UACEC,EAAA,QAAA,CAAOC,KAAK,WAAUF,SATb,yEAUTF,EAAA,MAAA,CACEK,UAAU,oBACVC,MAAO,CACLC,OAAQ,EACRC,KAAM,EACNC,QAAS,GACTC,cAAe,OACfC,SAAU,QACVC,WAAY,OACZC,SAAU,WACVX,SAEDY,CAAAA,QAAQC,IAAIC,wBAA0BF,QAAQC,IAAIE,YAAc,MAAM,MAAI,IAC1EH,QAAQC,IAAIG,oBAAsBJ,QAAQC,IAAII,QAAU"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willbooster/shared-lib-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"author": "WillBooster Inc.",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
"lint": "eslint --color \"./{scripts,src,tests}/**/*.{cjs,cts,js,jsx,mjs,mts,ts,tsx}\"",
|
|
28
28
|
"lint-fix": "yarn lint --fix --rule \"{ react-hooks/exhaustive-deps: 0 }\"",
|
|
29
29
|
"prettify": "prettier --cache --color --write \"**/{.*/,}*.{cjs,css,cts,htm,html,js,json,json5,jsx,md,mjs,mts,scss,ts,tsx,vue,yaml,yml}\" \"!**/test-fixtures/**\"",
|
|
30
|
-
"storybook": "
|
|
30
|
+
"storybook": "start-storybook -p 6006",
|
|
31
31
|
"test/ci": "yarn build-storybook",
|
|
32
32
|
"typecheck": "tsc --noEmit --Pretty"
|
|
33
33
|
},
|
|
34
34
|
"prettier": "@willbooster/prettier-config",
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@babel/core": "7.
|
|
36
|
+
"@babel/core": "7.21.0",
|
|
37
37
|
"@mdx-js/react": "2.3.0",
|
|
38
38
|
"@storybook/addon-actions": "6.5.16",
|
|
39
39
|
"@storybook/addon-docs": "6.5.16",
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
"@types/prettier": "2.7.2",
|
|
50
50
|
"@types/react": "18.0.28",
|
|
51
51
|
"@types/react-dom": "18.0.11",
|
|
52
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
53
|
-
"@typescript-eslint/parser": "5.
|
|
54
|
-
"@willbooster/eslint-config-ts-react": "10.1.
|
|
52
|
+
"@typescript-eslint/eslint-plugin": "5.54.0",
|
|
53
|
+
"@typescript-eslint/parser": "5.54.0",
|
|
54
|
+
"@willbooster/eslint-config-ts-react": "10.1.1",
|
|
55
55
|
"@willbooster/prettier-config": "9.1.1",
|
|
56
56
|
"babel-loader": "9.1.2",
|
|
57
|
-
"build-ts": "5.7.
|
|
58
|
-
"eslint": "8.
|
|
57
|
+
"build-ts": "5.7.4",
|
|
58
|
+
"eslint": "8.35.0",
|
|
59
59
|
"eslint-config-prettier": "8.6.0",
|
|
60
60
|
"eslint-import-resolver-typescript": "3.5.3",
|
|
61
61
|
"eslint-plugin-import": "2.27.5",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
64
64
|
"eslint-plugin-sort-class-members": "1.16.0",
|
|
65
65
|
"eslint-plugin-sort-destructure-keys": "1.5.0",
|
|
66
|
-
"eslint-plugin-storybook": "0.6.
|
|
66
|
+
"eslint-plugin-storybook": "0.6.11",
|
|
67
67
|
"eslint-plugin-unicorn": "45.0.2",
|
|
68
68
|
"lint-staged": "13.1.2",
|
|
69
69
|
"micromatch": "4.0.5",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"react-dom": "18.2.0",
|
|
73
73
|
"sort-package-json": "2.4.1",
|
|
74
74
|
"typescript": "4.9.5",
|
|
75
|
-
"vitest": "0.
|
|
75
|
+
"vitest": "0.29.2"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
78
|
"react": "~18.2.0",
|